somewhat OT: sudo question

Suvayu Ali fatkasuvayu+linux at gmail.com
Sat Sep 11 03:11:34 UTC 2010


On Friday 10 September 2010 06:14 PM, Ranjan Maitra wrote:
> No, this does not work, but this one does:
>
> maitra	ALL=(ALL) PASSWD:ALL, NOPASSWD:/usr/sbin/pm-hibernate,/usr/sbin/pm-suspend
>

Have you tried using groups? maybe use the default group %wheel to grant 
access to all users to hibernate with NOPASSWD, but use an admin group 
like %sys to grant access to all commands with PASSWD.

This would be much cleaner in my opinion.

> Ranjan

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list