Nick Rout, 2004-11-30 09:25:08: > [...] I note that in ubuntu nick's path includes /sbin /usr/sbin (and > maybe others). however on other systems ordinary mortals do not have > /sbin and /usr/sbin in their paths. > So I think I have almost answered my own question, to make sudo work as > expected i need to add /sbin and /usr/sbin to nick's path.
This doesn't answer your question exactly, but... depending on just how much you want to do, this kind of thing might be enough: My /etc/sudoers file (minus comments): Host_Alias PRATFALL = pratfall Cmnd_Alias SHUTDOWN = /sbin/shutdown Cmnd_Alias APT_GET = /usr/bin/apt-get User_Alias FULLTIMERS = trm root ALL=(ALL) ALL FULLTIMERS PRATFALL = SHUTDOWN, APT_GET My ~/.bashrc includes these aliases: alias shutdown='sudo /sbin/shutdown -h now' alias apt-get='sudo /usr/bin/apt-get' I've also added trm to the 'sudo' group, which lets me run those commands without being asked for my password. -- Timothy Musson member.fsf.org
