[Eug-lug] Sudoers question
Martin Kelly
aomighty at gmail.com
Mon Apr 2 14:56:08 PDT 2007
Hmm... that didn't work...syntax error. But yes, that's the kind of
thing I want.
Alan wrote:
>> What should I put in my sudoers file so that I can run any command as if
>> I were root with a password and a few other commands as root without a
>> password?
>>
>> Pretty much, I'd like to have full sudo access but be able to reboot and
>> poweroff my computer without a password.
>>
>> Currently, I have:
>> martin ALL = (ALL) ALL
>>
>
> I didn't actually double check this, but it goes something like this:
>
> ALL ALL = NOPASSWD: /sbin/shutdown, /sbin/halt
>
> Keep in mind that this would let anyuser on any host reboot the machine.
> You'd want to change the first column to martin, to make it so only that
> user can shutdown the machine.
>
> -ajb
>
>
> _______________________________________________
> EUGLUG mailing list
> euglug at euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>
More information about the EUGLUG
mailing list