PDA

View Full Version : Commands Required by all users


pablo paul
2006-04-20, 02:53 PM CDT
Sure this has been asked 1000's of times i have searched but didn't find anything obvious. How do i enable users other than root to access the following programs

iwconfig
iwlist

and maybe even dhclient (ihaven't been asked for this yet but i'm sure it will)

bob
2006-04-20, 03:26 PM CDT
Use the chmod command - here's some information: http://www.linuxcommand.org/ "Learning The Shell", Chapt. 7

pablo paul
2006-04-21, 03:37 AM CDT
Sorry probably didn't explain myself to well. I know how to use chmod to change permissions i'm more interested in how do i stop someome having to type:

./sbin/iwconfig (I think that paths wrong i'm on a XP box at the moment)

So as if you were root the user would just type:

iwconfig

From my very little Unix experience i think you added a line in .dtprofile, does gnome have something similar? How would i format the entry?

Jman
2006-04-21, 03:40 PM CDT
You add /sbin to the PATH environment variable (and perhaps /usr/sbin). There's howtos for how to do this.

Note that the user will have all the administrative programs in those dirs on their PATH as well.