public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] sudo difficulties
Date: Wed, 5 Apr 2006 17:06:50 -0700	[thread overview]
Message-ID: <49bf44f10604051706v4bfa7fe6qc3c0c03d6ec4569@mail.gmail.com> (raw)
In-Reply-To: <44899.127.0.0.1.1144281033.squirrel@localhost>

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



  reply	other threads:[~2006-04-06  0:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-05 23:45 [gentoo-user] sudo difficulties Grant
2006-04-05 23:50 ` JimD
2006-04-06  0:06   ` Grant [this message]
2006-04-06  0:17     ` Manuel McLure
2006-04-06  0:30     ` JimD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49bf44f10604051706v4bfa7fe6qc3c0c03d6ec4569@mail.gmail.com \
    --to=emailgrant@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox