PDA

View Full Version : [ubuntu] PolicyKit not working for me (shut down)



MacUntu
May 1st, 2008, 11:55 AM
I want to use /sbin/shutdown w/o the need of typing a password.

What I've tried so far:

1.) I added myself to /etc/sudoers (user ALL=NOPASSWD: /sbin/shutdown): Worked fine - like expected.

2.) I added myself to the list of users that should be able to do a shut down via polkit-gnome-authorization. Didn't worked - not expected.

As I understand the whole policy thingy, it should do exactly what I want, right? So why isn't it working?

TIA for your answers! :)

MacUntu
May 6th, 2008, 03:09 PM
*bump*

Old Narnian
March 28th, 2009, 12:59 PM
The following command should accomplish what you were looking for. You probably found it by now.

sudo chmod u+s /sbin/shutdown