policykit-1 is not aware of groups assigned by pam_group
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
policykit-1 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm using pam_group for my ldap users so that they get assigned default ubuntu groups:
$ tail -n2 /etc/security/
# add LDAP users to these default groups, but don't give them admin rights.
"*;*;*;
These additional group IDs are assigned correctly:
$ id
uid=6007(
Based on these additional groups, I'm trying to give certain user groups the necessary permissions to execute program, using policykit-1. Unfortunately, policykit does seem to only 'see' / 'be aware' of the primary group that the user belongs to (and not those additional groups that are assigend via /etc/security/
This works (users can start the program):
[AllowUsertoDoS
Identity=
This doesn't work (users are asked to provide the administrator password):
[AllowUsertoDoS
Identity=
I suspect that this has something to do with the fact that 'id' does return conflicting information about groups:
# call id without username, returns all groups, including the ones defined in /etc/security/
$ id
uid=6007(
# call id with username, only ldap groups are returned, the ones defined in /etc/security/
$ id myusername
uid=6007(
My suspicion is that policykit-1 is calling "id user" (or a similar command) and "sees" only the main ldap groups.
I did not expect this behavior, because /etc/pam.d/polkit-1 does include /etc/pam.
This is Ubuntu 12.04.3 with all latest updates. Any help and suggestions are appreciated.
$ lsb_release -rd
Description: Ubuntu 12.04.3 LTS
Release: 12.04
$ apt-cache policy policykit-1
policykit-1:
Installed: 0.104-1ubuntu1.1
Candidate: 0.104-1ubuntu1.1
---
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: amd64
DistroRelease: Ubuntu 12.04
MarkForUpload: True
NonfreeKernelMo
Package: policykit-1 0.104-1ubuntu1.1
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:en
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: precise
Uname: Linux 3.5.0-41-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
summary: |
- policykit-1 does not "see" groups assigned by pam_group + policykit-1 is not aware of groups assigned by pam_group |
description: | updated |
apport information