Rockthesmurf
Advanced Member
Could anyone advise whether it would be a bad idea for me to add /sbin to be in the path of a non root user?
When I first set up Slackware on my Pandora I thought it didn't come with some basic command line executables (like ifconfig) as some instructions I followed indicated ifconfig should be in the path for a non-root user. It wasn't until I made further Google queries regarding ifconfig on Slackware that I found out I can call it directly from it's absolute path (e.g. /sbin/ifconfig).
This page makes the suggestion /sbin could be added to the path: http://linuxcommando.blogspot.co.uk/2008/05/run-ifconfig-as-non-root-user-for-read.html and makes a note that if you do this, and then perform operations with ifconfig that really do require elevated privileges, they will of course fail with a "Permission denied' message (which seems reasonable).
EDIT: Question would be better placed in the other OS section of the forum, I can't see how I can change this now, if a moderator wants to move it and then remove this edit that would be cool.
When I first set up Slackware on my Pandora I thought it didn't come with some basic command line executables (like ifconfig) as some instructions I followed indicated ifconfig should be in the path for a non-root user. It wasn't until I made further Google queries regarding ifconfig on Slackware that I found out I can call it directly from it's absolute path (e.g. /sbin/ifconfig).
This page makes the suggestion /sbin could be added to the path: http://linuxcommando.blogspot.co.uk/2008/05/run-ifconfig-as-non-root-user-for-read.html and makes a note that if you do this, and then perform operations with ifconfig that really do require elevated privileges, they will of course fail with a "Permission denied' message (which seems reasonable).
EDIT: Question would be better placed in the other OS section of the forum, I can't see how I can change this now, if a moderator wants to move it and then remove this edit that would be cool.
Last edited by a moderator: