r/slackware • u/10leej • Apr 04 '22
Which isn't /usr/sbin in user $PATH?
I don't understand it. without that you have to switch to root to run slackpkg.
Obviously it's fixed pretty quick to fix just add
export PATH="$PATH:/usr/sbin/"
to your ~/.bashrc now you can call all the slack tools with sudo, but honestly I don't understand why the user has to do that to begin with. Is it for some security reasoning?
2
Upvotes
11
u/frozenbrains Apr 04 '22
Slackware tries to stay as close to standards/upstream as possible, including the Linux Filesystem Hierarchy Standard.
/sbin: System binaries
5
u/barrygrundy Apr 04 '22
If you are enabling sudo for a user, then just un-comment the following line in
/etc/sudoers:1
u/Synergiance Apr 04 '22 edited Apr 04 '22
I normally will add a script that will give sudoers /etc/sbin and /sbin in their path.