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?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/cah_obidzwkugqo++pgcvau-u2fwszt+ro+xcmmtn0jtgnj4...@mail.gmail.com

Reply via email to