Control: tags -1 moreinfo

On Mon, 04 Mar 2019 18:14:10 +1300 patrick <blackwhite...@gmail.com> wrote:
using the command shell logged in as root using the su command
most usual commands work as expected but dpkg is failing as below
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

from the set command the output includes
PATH=/home/patrick/.local/share/umake/bin:/home/patrick/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Hi,

do you mean that when you log in as root and then, as root, you use the su command, then PATH does not contain /sbin and /usr/sbin?

Or do you mean that when you as a normal user use su to run a program as root, the PATH does not contain /sbin and /usr/sbin?

Can you still reproduce this issue in Debian 12 bookworm or Debian unstable?

Regards,

--
Gioele Barabucci

Reply via email to