I logged out the user and started a new session:

I went to try accessing Users and Groups from the menu and got the same
behavior as before.  Only the Password button for the current user
worked, nothing else.

$ ps
  PID TTY          TIME CMD
12237 pts/3    00:00:00 bash
12284 pts/3    00:00:00 ps

$ pkcheck --action-id org.freedesktop.systemtoolsbackends.set 
--allow-user-interaction --process 12284
Error checking for authorization org.freedesktop.systemtoolsbackends.set: 
Remote Exception invoking 
org.freedesktop.PolicyKit1.Authority.CheckAuthorization() on 
/org/freedesktop/PolicyKit1/Authority at name org.freedesktop.PolicyKit1: 
org.freedesktop.PolicyKit1.Error.Failed: stat() failed for /proc/12284: No such 
file or directory
$ ps
  PID TTY          TIME CMD
12237 pts/3    00:00:00 bash
12484 pts/3    00:00:00 ps
$ pkcheck --action-id org.freedesktop.systemtoolsbackends.set 
--allow-user-interaction --process 12484
Error checking for authorization org.freedesktop.systemtoolsbackends.set: 
Remote Exception invoking 
org.freedesktop.PolicyKit1.Authority.CheckAuthorization() on 
/org/freedesktop/PolicyKit1/Authority at name org.freedesktop.PolicyKit1: 
org.freedesktop.PolicyKit1.Error.Failed: stat() failed for /proc/12484: No such 
file or directory
$ ps
  PID TTY          TIME CMD
12237 pts/3    00:00:00 bash
12573 pts/3    00:00:00 ps


$ ps
  PID TTY          TIME CMD
12237 pts/3    00:00:00 bash
12994 pts/3    00:00:00 ps
$ pkcheck --action-id com.ubuntu.systemservice.setproxy 
--allow-user-interaction --process 12994
Error checking for authorization com.ubuntu.systemservice.setproxy: Remote 
Exception invoking org.freedesktop.PolicyKit1.Authority.CheckAuthorization() on 
/org/freedesktop/PolicyKit1/Authority at name org.freedesktop.PolicyKit1: 
org.freedesktop.PolicyKit1.Error.Failed: stat() failed for /proc/12994: No such 
file or directory
$ ps
  PID TTY          TIME CMD
12237 pts/3    00:00:00 bash
13039 pts/3    00:00:00 ps


pkcheck is now killing the process!!


The user is in the admin group.

Now for root:

# ps
  PID TTY          TIME CMD
13535 pts/3    00:00:00 su
13543 pts/3    00:00:00 bash
13568 pts/3    00:00:00 ps
# pkcheck --action-id org.freedesktop.systemtoolsbackends.set 
--allow-user-interaction --process 13543
# ps
  PID TTY          TIME CMD
13535 pts/3    00:00:00 su
13543 pts/3    00:00:00 bash
13750 pts/3    00:00:00 ps
# pkcheck --action-id com.ubuntu.systemservice.setproxy 
--allow-user-interaction --process 13543
#

root works fine.


So some observations:

It looks like to me that some of the tools like 'useradd', 'adduser'
need to be updated so that they put the user into the 'admin' group on
those installations that rely on PolicyKit.  Since the menues were not
working using these tools was the only way that I could add users to the
system but obviously they knew nothing about PolicyKit and they need to.

Even with the users in the admin group the access still isn't working
even if you restart polkitd.

-- 
PolicyKit authentication always fails
https://bugs.launchpad.net/bugs/598909
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to