public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] sudo difficulties
@ 2006-04-05 23:45 Grant
  2006-04-05 23:50 ` JimD
  0 siblings, 1 reply; 5+ messages in thread
From: Grant @ 2006-04-05 23:45 UTC (permalink / raw
  To: Gentoo mailing list

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

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] sudo difficulties
  2006-04-05 23:45 [gentoo-user] sudo difficulties Grant
@ 2006-04-05 23:50 ` JimD
  2006-04-06  0:06   ` Grant
  0 siblings, 1 reply; 5+ messages in thread
From: JimD @ 2006-04-05 23:50 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] sudo difficulties
  2006-04-05 23:50 ` JimD
@ 2006-04-06  0:06   ` Grant
  2006-04-06  0:17     ` Manuel McLure
  2006-04-06  0:30     ` JimD
  0 siblings, 2 replies; 5+ messages in thread
From: Grant @ 2006-04-06  0:06 UTC (permalink / raw
  To: gentoo-user

> > 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:

grant@system4 ~ $ /sbin/shutdown -h now
shutdown: you must be root to do that!

- Grant

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] sudo difficulties
  2006-04-06  0:06   ` Grant
@ 2006-04-06  0:17     ` Manuel McLure
  2006-04-06  0:30     ` JimD
  1 sibling, 0 replies; 5+ messages in thread
From: Manuel McLure @ 2006-04-06  0:17 UTC (permalink / raw
  To: gentoo-user

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:
> 
> grant@system4 ~ $ /sbin/shutdown -h now
> shutdown: you must be root to do that!

Try

	sudo /sbin/shutdown -h now

instead.

-- 
Manuel A. McLure KE6TAW <manuel@mclure.org> <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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] sudo difficulties
  2006-04-06  0:06   ` Grant
  2006-04-06  0:17     ` Manuel McLure
@ 2006-04-06  0:30     ` JimD
  1 sibling, 0 replies; 5+ messages in thread
From: JimD @ 2006-04-06  0:30 UTC (permalink / raw
  To: gentoo-user

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:
>
> grant@system4 ~ $ /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:

grant@system4 ~ $ 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-06  0:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-05 23:45 [gentoo-user] sudo difficulties Grant
2006-04-05 23:50 ` JimD
2006-04-06  0:06   ` Grant
2006-04-06  0:17     ` Manuel McLure
2006-04-06  0:30     ` JimD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox