On Thu, 6 Sep 2001 at 01:16, Percy wrote:
> percy@messiah percy] sudo -u FULLTIMERS -s |SHUTDOWN
> Sorry, user percy is not allowed to execute '/bin/bash' as FULLTIMERS on messiah.
> bash: SHUTDOWN: command not found

"sudo -u FULLTIMERS" tells sudo to run as FULLTIMERS and I don't think
FULLTIMERS is a user. Besides, if it would follow your user_alias then
you'd just be looping as percy.

AFAIK aliases are only for use within sudo, meaning you don't explicitly
say what group you belong to. It's just an easier way of mapping instead
of listing the ACLs one by one.

So since you're a FULLTIMERS (sic), just do:

$ sudo shutdown

And there you go. Since you have NOPASSWD set, it shouldn't even ask you
for a password.

BTW, I don't recommend NOPASSWD. Why? Because if you leave the terminal
open then anybody can use your sudo privileges. Bad enough for you to have
forgotten to close your terminal. Worse that it can be exploited without
asking for your password first. Anyway sudo caches the password and
doesn't ask you every time. There are intervals between password prompts.
:)

 --> Jijo

--
Federico Sevilla III  :: [EMAIL PROTECTED]
Network Administrator :: The Leather Collection, Inc.
GnuPG Key: <http://jijo.leathercollection.ph/jijo.gpg>




_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to