sudo problems

ultrakorne ultrakorne at paranoici.org
Thu Dec 30 00:56:42 UTC 2004


rodrigo ahumada wrote:
> 
> 
>> 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/
> 
> 

also
ALL localhost=(root)NOPASSWD: /usr/bin/savepower

trying to use aliases is also useless..





More information about the ubuntu-users mailing list