Sunday, September 26, 2010

How to disable password queries for Package Updates in Ubuntu 10.10

Today, I've toyed a bit with policykit in Ubuntu 10.10. It turns out that disabling the password prompt in update-manager and the software center is fairly easy. The following command should do the trick:

$ cat <<EOT | sudo tee /etc/polkit-1/localauthority/50-local.d/allow-apt.pkla
[allow-apt]
Identity=unix-group:admin
Action=org.debian.apt.*
ResultAny=no
ResultInactive=yes
ResultActive=yes
EOT