sudo problems
rodrigo ahumada
rodahum1978 at hotmail.com
Tue Dec 28 16:31:07 UTC 2004
>From: Ultrakorne <ultrakorne at paranoici.org>
>To: ubuntu-users at lists.ubuntu.com
>Subject: Re: sudo problems
>Date: Tue, 28 Dec 2004 14:25:49 +0100
>
>albi wrote:
>
>>
>>hmm, you also have the line :
>>ultra ALL=(ALL) ALL
>>
>>why not change that into :
>>ultra ALL= NOPASSWD: ALL
>>
>>and see what gives ?
>>
>>
>
>the problem is i dont want to execute all command without passwords, but
>only one... its very unsecure to use nopasswd for all!
this is my sudoers to allow mortal users to shutdown (APAGAR)
# Host alias specification
Host_Alias LOCAL=localhost
# User alias specification
User_Alias MORTALES=leda,camila,loreto,rod
# Cmnd alias specification
Cmnd_Alias APAGAR=/sbin/poweroff,/sbin/reboot,/sbin/halt
# Defaults
Defaults !lecture,tty_tickets ## what is this?
#################################
MORTALES LOCAL=(root)NOPASSWD:APAGAR
#how i read it: MORTALs from LOCAL machine can as (root) without password
run APAGAR
root ALL=(ALL) ALL
# root can from everywhere as anybody run anything
# Added by Ubuntu installer
rod ALL=(ALL) ALL
_________________________________________________________________
Charla con tus amigos en lĂnea mediante MSN Messenger:
http://messenger.latam.msn.com/
More information about the ubuntu-users
mailing list