Author Topic: Problems with GUFW and Thunar Root - Polkit?  (Read 1071 times)

0 Members and 1 Guest are viewing this topic.

Offline johnvan54

  • Neuling
  • *
  • Posts: 38
  • Murphy was an optimist
  • Branch: Testing
  • Desktop: XFCE 4.1.2
  • GPU Card: ATI Radeon HD 4850
  • GPU driver: Free
  • Kernel: linux44-x64
  • Skill: Intermediate
Problems with GUFW and Thunar Root - Polkit?
« on: 29. April 2016, 03:07:49 »
Since latest set of testing updates, I found I cannot start Thunar Root and GUFW. Based on other posts I think its related to
polkit.

Below is an excerpt from ~\.config\Thunar\uca.xml, which directs action to call pkexec thunar:

Code: [Select]
<action>
<icon>stock_folder</icon>
<name>Thunar Root</name>
<unique-id>1367866030392883-2</unique-id>
<command>pkexec thunar %f</command>
<description>Thunar Root</description>
<patterns>*</patterns>
<directories/>
</action>

When I run from terminal, I get after supplying password
Code: [Select]
$ pkexec thunar /
Thunar: Cannot open display:

However if I use "gksudo thunar /", it opens Thunar in the root directory as expected.

I have similar problems with GUFW. When I try to "pkexec gufw-pkexec" , it seg faults, but " gksudo  gufw-pkexec" works fine.

I am using XFCE, and polkit-gnome.

Code: [Select]
$ ps aux | grep polkit
polkitd    515  0.0  0.2 528724 19392 ?        Ssl  18:41   0:00 /usr/lib/polkit-1/polkitd --no-debug
johnvan   1059  0.0  0.3 471476 32128 ?        Sl   18:41   0:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
johnvan   2427  0.0  0.0  11048  2120 pts/0    S+   20:51   0:00 grep polkit

These are not major issues for me, since I can work around them, but would like to know if there is a solution.




Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: Problems with GUFW and Thunar Root - Polkit?
« Reply #1 on: 29. April 2016, 07:09:35 »
just run 'gufw' you will be automatically prompted for password, because your gnome-polkit-thingy is already active.
Don;t mix and match sudo and pkexec.
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline johnvan54

  • Neuling
  • *
  • Posts: 38
  • Murphy was an optimist
  • Branch: Testing
  • Desktop: XFCE 4.1.2
  • GPU Card: ATI Radeon HD 4850
  • GPU driver: Free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Problems with GUFW and Thunar Root - Polkit?
« Reply #2 on: 29. April 2016, 13:53:06 »
just run 'gufw' you will be automatically prompted for password, because your gnome-polkit-thingy is already active.
Don;t mix and match sudo and pkexec.

Just tried that and still get segmentation fault.

I tried running 'sudo python2 /usr/lib/python2.7/site-packages/gufw/gufw.py' as suggested here:

 https://forum.manjaro.org/index.php?topic=19476.msg259675#msg259675, and it works.

I have added packages and removed them. Perhaps that may have messed up a dependency, or related to bug noted in another thread.


Offline spectromas

  • Sr. Mitglied
  • ****
  • Posts: 459
  • Branch: Stable
  • Desktop: Awesome
  • GPU Card: ATI RV710/M92 [Radeon HD 4330/4350/4550]
  • GPU driver: free
  • Kernel: linux45-x64
  • Skill: Intermediate
Re: Problems with GUFW and Thunar Root - Polkit?
« Reply #3 on: 29. April 2016, 15:23:24 »
Maybe have a look at some of the suggestions here https://forum.manjaro.org/index.php?topic=32578.0
I still haven't fixed the problem though.

Offline johnvan54

  • Neuling
  • *
  • Posts: 38
  • Murphy was an optimist
  • Branch: Testing
  • Desktop: XFCE 4.1.2
  • GPU Card: ATI Radeon HD 4850
  • GPU driver: Free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Problems with GUFW and Thunar Root - Polkit?
« Reply #4 on: 29. April 2016, 17:54:23 »
Normally, as per the default installation, I start Xwindows from LightDM. I tried starting without a display manager using 'startxfce4' and both gufw and thunar root worked.

Offline scachemaille

  • Held Mitglied
  • *****
  • Posts: 528
  • I'm new. Be nice!
  • Branch: Unstable
  • Desktop: Plasma 5
  • GPU Card: nVidia GT 330M
  • GPU driver: Nouveau
  • Kernel: 4.8_x64
  • Skill: Intermediate
Re: Problems with GUFW and Thunar Root - Polkit?
« Reply #5 on: 29. April 2016, 18:20:34 »
about gufw...
I don't know but I saw in the last UFW updates (on testing) that they changes the conf file path.
maybe it would be good to check if GUFW is still working as expected. or that the rules done by GUFW are really applied by UFW etc. etc. etc

Offline YoungWerther

  • Neuling
  • *
  • Posts: 3
  • Skill: Intermediate
Re: Problems with GUFW and Thunar Root - Polkit?
« Reply #6 on: 30. April 2016, 05:41:35 »
I think Polkit issue a likely conclusion.

After the update, I could no longer access samba shares due to my pw not being accepted. The pw still works on other boxes, so I tried to check ufw to make sure I wasn't being blocked there, but couldn't start it. Trying to fix that, I wanted to switch to su and found my su password no longer worked. After reading this post, I checked Thunar root; nope. Thunar asks for the root password, but then just drops back to the standard Thunar box.

Not much in the way of solutions here, I realize. Work is ongoing.

Offline johnvan54

  • Neuling
  • *
  • Posts: 38
  • Murphy was an optimist
  • Branch: Testing
  • Desktop: XFCE 4.1.2
  • GPU Card: ATI Radeon HD 4850
  • GPU driver: Free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Problems with GUFW and Thunar Root - Polkit?
« Reply #7 on: 01. May 2016, 03:29:23 »
Normally, as per the default installation, I start Xwindows from LightDM. I tried starting without a display manager using 'startxfce4' and both gufw and thunar root worked.

So I tested using SLiM display manager, and I got gufw and thunar root to start properly :).

They did not work with LXDM.