Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [testuser@laptak ~]$ pkexec echo 'hi'
- ==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
- Authentication is needed to run `/usr/bin/echo' as the super user
- Multiple identities can be used for authentication:
- 1. takkie
- 2. testuser
- Choose identity to authenticate as (1-2): 2
- Password:
- polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
- ==== AUTHENTICATION FAILED ====
- Error executing command as another user: Not authorized
- This incident has been reported.
- ## journalctl
- Mar 25 20:18:23 laptak polkitd[23267]: Registered Authentication Agent for unix-process:23767:871019 (system bus name :1.517 [pkexec echo hi], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
- Mar 25 20:18:31 laptak polkitd[23267]: Operator of unix-process:23767:871019 FAILED to authenticate to gain authorization for action org.freedesktop.policykit.exec for unix-process:23767:871019 [-bash] (owned by unix-user:testuser)
- Mar 25 20:18:31 laptak pkexec[23783]: testuser: Error executing command as another user: Not authorized [USER=root] [TTY=/dev/pts/0] [CWD=/home/testuser] [COMMAND=/usr/bin/echo hi]
- Mar 25 20:18:31 laptak polkitd[23267]: Unregistered Authentication Agent for unix-process:23767:871019 (system bus name :1.517, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement