ResultInactive does not seem to work for Action=org.debian.apt.install-or-remove-packages

Bug #1307626 reported by Sean Brisbane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
policykit-1 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I can install packages using aptdcon -i via the graphical login.

When logged in via a non graphical local login, or via ssh, the user is unable to install packages with the error:

$ aptdcon -i xclip
The following NEW package will be installed (1):
  xclip
Do you want to continue [Y/n]?y
ERROR: You are not allowed to perform this action.

('system-bus-name', {'name': ':1.194'}): org.debian.apt.install-or-remove-packages

The contents of the file I use to enable this policy are below:

cat /etc/polkit-1/localauthority/50-local.d/10-allow-users-to-install.pkla
[Untrusted Install]
Identity=unix-user:testing
Action=org.debian.apt.install-packages
ResultActive=auth_self
ResultInactive=auth_self

[Untrusted Install or Remove]
Identity=unix-user:testing
Action=org.debian.apt.install-or-remove-packages
ResultActive=auth_self
ResultInactive=auth_self

[Untrusted Update]
Identity=unix-user:testing
Action=org.debian.apt.update-cache
ResultInactive=auth_self
ResultActive=auth_self

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: policykit-1 0.104-1ubuntu1.1
ProcVersionSignature: Ubuntu 3.11.0-19.33~precise1-generic 3.11.10.5
Uname: Linux 3.11.0-19-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Mon Apr 14 18:23:49 2014
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_GB:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/sh
SourcePackage: policykit-1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sean Brisbane (s-brisbane1) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.