B, 
Thanks for pointing me in this direction.  I got several commands working well 
this way, but shutdown is still a problem.
I added a line as you suggested for the shutdown command, but when I try to 
shutdown as the user, I get a request for a password.  The root password gets 
rejected and using the user password locks me out of the ability to issue the 
command.  So I have to go back to su-ing to root and then shutting down.  I 
also tried creating /etc/shutdown.allow file with a single line containing 
the name of the user.  No luck.
Any other thoughts?
Paul
On Sunday 18 January 2004 02:51 pm, bascule wrote:
> you can use the 'sudo' command to allow a use to issue any particular
> command that ordinarily could only be run by root,
> you need to edit the /etc/sudoers file to specify what user and what
> commands and whether the user needs to specify a password,
> to edit this file you need to logon/su to root and run 'visudo'
> this opens the file in a mode of vi that will check for errors on the file
> upon closing
> you will need to read the man pages for 'sudo' and and 'sudoers' but as an
> example i added the following to my /etc/sudoers to allow me to run urpmi
> without suing to root:
>
> bascule mycroft = NOPASSWD:  /usr/sbin/urpm*, /usr/bin/urpm*
>
> note that to run urpmi as bascule i have to issue:
> $ sudo /usr/sbin/urpmi
> as /usr/sbin is not in the path of my normal user
> and that 'mycroft' is the name of my machine
>
> bascule
>
> On Sunday 18 Jan 2004 7:31 pm, Paul Kaplan wrote:
> > How can I allow a single normal user (me) to execute the shutdown command
> > without changing the suid bit on the shutdown executable?  This can
> > obviously be done if I were using a display manager, but I don't.
> > TIA
> > Paul


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to