Hi !
On 09 Apr 2002 15:23:34 +0100
Patrick Kirk <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I want my son to be able to shutdown the computer but don't want him
> being able to access my files.
> 
> How do I give him these privileges?

I use the sudo approach and am quite lucky with it.
Therefore i have these lines in /etc/sudoers:

User_Alias      SHUTDOWNERS=markus
# Cmnd alias specification
Cmnd_Alias      SHUTDOWN=/sbin/shutdown -[hkr] now
# User privilege specification
SHUTDOWNERS     ALL=SHUTDOWN,NOPASSWD: ALL


You do this with visudo as root. Read the man page for sudo !

After you have done this, you can call shutdown like this

sudo /sbin/shutdown -h now

or make an alias
alias shutdown=sudo /sbin/shutdown sudo

Generally, sudo is preferrable for all things like that. You have great
controll and great possibilities.

-- 
Markus Grunwald

Registered Linux User Nr 101577      
http://counter.li.org                http://www.grunwald.2xs.de


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to