You are not logged in.

#1 2011-10-05 11:55:36

jfb3
Member
Registered: 2011-08-20
Posts: 68

pkexec - not authorized [solved]

I know about this thread: https://bbs.archlinux.org/viewtopic.php?id=127648

I created /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="org.freedesktop.policykit.pkexec.run-thunar">
    <description>Run Thunar as root</description>
    <message>Authentication is required to run Thunar as root</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/thunar</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
  </action>

</policyconfig>

My result of

pkexec thunar

is

Error executing command as another user: Not authorized

This incident has been reported.

What did I miss?

Last edited by jfb3 (2011-10-05 18:26:13)

Offline

#2 2011-10-05 12:37:32

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: pkexec - not authorized [solved]

Ok first please make us sure that polkit (/usr/lib/polkit-1/polkitd) daemon is running (I assume that it must be running if you use consolekit eg. with any login manager) and that authorization agent is started (lxpolkit or polkit gnome).


Lenovo G50 | LXQT-git | compton | conky

Offline

#3 2011-10-05 18:25:44

jfb3
Member
Registered: 2011-08-20
Posts: 68

Re: pkexec - not authorized [solved]

polkit is running

root       882     1  0 Oct05 ?        00:00:00 /usr/lib/polkit-1/polkitd

I have to run polkit-gnome?  I can't find documentation on running it.  Daemon, does it get called as needed???

I think I may have reached the point of diminishing returns.

I don't need all the complication.  It's not like I need to protect my machine from me.  Now, if I was setting up a departmental server that'd be different.

I think I'll just do it like this in my menu:

terminator -T "thunar/root sudo password" --geometry 300x50+20+20 --command "sudo thunar"


Thanks for your help.

Offline

Board footer

Powered by FluxBB