Troubles on authenticating with pkexec

Bug #1322662 reported by Removed by request
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
policykit-1 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm using Ubuntu 14.10 dev with policykit-1 0.105-4ubuntu2 and on trying to change from gksu to pexec I'm ecountering some errors:

1. pkexec isn't showing a graphical frontend and asks directly in the terminal for the password.
2. After successfully authenticating pkexec closes mostly without giving an error message. Here is an example output:

sworddragon@ubuntu:~$ pkexec pcmanfm
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/pcmanfm' as the super user
Authenticating as: ,,, (sworddragon)
Password:
==== AUTHENTICATION COMPLETE ===
Hangup

But sometimes I'm getting also an error message:

sworddragon@ubuntu:~$ pkexec pcmanfm
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/pcmanfm' as the super user
Authenticating as: ,,, (sworddragon)
Password:

(process:1795): GLib-WARNING **: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_child_watch_add()/g_spawn_sync() either directly or indirectly.
==== AUTHENTICATION COMPLETE ===
Hangup

Both times calling "echo $?" afterwards shows 129.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in policykit-1 (Ubuntu):
status: New → Confirmed
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.