[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt as a user



I'm trying to allow an apt user to run apt* commands. I've got this polkit:

/etc/polkit-1/localauthority/30-site.d/10-org.com.foo.apt.pkla

[Configuration]
AdminIdentities=unix-user:apt
Action=org.debian.apt.*
ResultAny=no
ResultInactive=no
ResultActive=yes

However when I: su - apt
it looks like nothing has changed:

$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13:
Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I've got aptdaemon installed. Any idea what I'm doing wrong here?


Reply to: