Re: [gentoo-user] sudo difficulties
On Wed, April 5, 2006 7:45 pm, Grant wrote: I've added the following to the bottom of my sudo file using 'visudo' and there are no complaints of bad syntax, but grant still can't shut down the system: grant system4 = /sbin/shutdown -h now What am I missing? - Grant First try to edit one of the examples and see if that works. For example try this one: %users localhost=/sbin/shutdown -h now Replace %users with the group for grant. Jim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- I'm a geek, but I don't get it. 36-24-36 = -24. What's the significance? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Florida, USA, Earth, Solar System, Milky Way -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo difficulties
I've added the following to the bottom of my sudo file using 'visudo' and there are no complaints of bad syntax, but grant still can't shut down the system: grant system4 = /sbin/shutdown -h now What am I missing? - Grant First try to edit one of the examples and see if that works. For example try this one: %users localhost=/sbin/shutdown -h now Replace %users with the group for grant. Jim I actually tried that first and when that failed I tried something like that specified here: www.gentoo.org/doc/en/sudo-guide.xml Either way I get: [EMAIL PROTECTED] ~ $ /sbin/shutdown -h now shutdown: you must be root to do that! - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo difficulties
Grant wrote: I actually tried that first and when that failed I tried something like that specified here: www.gentoo.org/doc/en/sudo-guide.xml Either way I get: [EMAIL PROTECTED] ~ $ /sbin/shutdown -h now shutdown: you must be root to do that! Try sudo /sbin/shutdown -h now instead. -- Manuel A. McLure KE6TAW [EMAIL PROTECTED] http://www.mclure.org ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo difficulties
On Wed, April 5, 2006 8:06 pm, Grant wrote: I actually tried that first and when that failed I tried something like that specified here: www.gentoo.org/doc/en/sudo-guide.xml Either way I get: [EMAIL PROTECTED] ~ $ /sbin/shutdown -h now shutdown: you must be root to do that! - Grant For sudo to work you need to run the command with sudo. Try: [EMAIL PROTECTED] ~ $ sudo /sbin/shutdown -h now shutdown Jim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- I'm a geek, but I don't get it. 36-24-36 = -24. What's the significance? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Florida, USA, Earth, Solar System, Milky Way -- gentoo-user@gentoo.org mailing list