On Thu, Dec 20, 2007 at 11:35:32AM -0800, Alou Dialy wrote: > I figured out that I didnt have /sbin and /usr/sbin in > my PATH but how come when I do sudo env it does show > those directories in my PATH ? > > The man page for sudo or sudoers says that sudo does > modify PATH but it doesnt say how and it doesnt say > how it tries to find the command that you give it. > > Is there a way to set up sudo so that I dont have to > type the full path to the command.
How about an alias in your own .bash_aliases? alias shutdown "sudo /sbin/shutdown" Or something? Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]