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

-- 
'Does he have people put to death?' said Mort.
SOMETIMES. THERE ARE SOME THINGS YOU HAVE TO DO, WHEN YOU'RE A KING.
(Mort)


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

Reply via email to