$PATH for admin privileges

I don't know if anyone else has experienced this, but on Two PCs running Elive 3.8.2 32bit, when I try to enter certain commands, this occurs:

~ ❯❯❯ shutdown -h now                                                         1
zsh: correct shutdown to _shutdown [nyae]? n
Command 'shutdown' is available in the following places
 * /sbin/shutdown
 * /usr/sbin/shutdown
The command could not be located because '/usr/sbin:/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
~ ❯❯❯

This also occurs with sudo snap-store, mc-installer, etc. It's really annoying.

Output of my $PATH:

~ ❯❯❯ $PATH
zsh: no such file or directory: /snap/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
~ ❯❯❯

Great job otherwise! Can't wait for 4.0!

1 Like

It all comes down to a lack of administrative privileges (aka sudo).
Commands in the "sbin" directory cannot be accessed by a normal user and will require a "sudo" prefix.

Thanks :slight_smile:

~TheTechRobo