Ubuntu – How to make the sudo GUI work without the admin group


I have a group of users with sudo privileges. That group is not called admin. The users can use sudo on the command line without any problems, however, Unity GUI dialogs requesting root permission don't accept their login / password. They seem to additionally depend on a membership in the admin group.

How can I change this?

Best Answer

These applications are likely using Polkit, not sudo (or gksudo or a similar frontend), for authorization. The default rule on Ubuntu for Polkit uses membership in sudo or admin groups:

$ cat /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf 

Just create a new configuration file in /etc/polkit-1/localauthority.conf.d, say 60-local-admin.conf, containing:

Related Question