Comment 12 for bug 448810

Revision history for this message
pablomme (pablomme) wrote :

@Nicolò:

Create a file /var/lib/polkit-1/localauthority/50-local.d/localhost.pkla (as root) with the following contents:

[Allow myself updating packages]
Identity=unix-user:<user-name>
Action=org.debian.apt.update-cache
ResultAny=no
ResultInactive=no
ResultActive=yes

You can also replace 'unix-user:<user-name>' with 'unix-group:<group-name>'. A semicolon-separated list is also allowed. You can of course set all three 'Result*' to 'yes' if you wish. And the title "Allow myself ..." is also entirely arbitrary. See more in 'man 8 pklocalauthority'. Type 'pkaction' for a list of other actions you can tweak the authorisation requirements for.