Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-01-02 22:18:23

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Thunar: ownership to root

I am trying to get a custom action into the context menu that lets me change ownership to root.  The command I tried (unsuccessfully) was this:

gksu chown -R root %f%F

Has someone done this already?  Any thoughts on how to do this?

TIA


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#2 2014-01-03 03:41:36

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: Thunar: ownership to root

gksu "chown -R root %F"

...works here. Seems you have to enclose the command in quotes. You only need one of %f or %F not both, and since %F allows for multiple files, its the better option.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-01-03 06:23:32

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: Thunar: ownership to root

Excellent, thanks!


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#4 2014-01-03 14:20:41

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: Thunar: ownership to root

So, to push my luck: I followed the innate human impulse to symmetry and created "Ownership to user" with this command:

gksu "chown -R .users %F"

That seemed to give mixed results: ownership was still root when I right-clicked > permissions tab, but user could edit and save.  Have a better suggestion?


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#5 2014-01-03 19:19:39

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: Thunar: ownership to root

Try:

gksu "chown -R $USER %F"

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2014-01-03 19:26:10

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: Thunar: ownership to root

OK.  Do you think these would be good additions to the Thunar - Custom page?


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#7 2014-01-03 19:55:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: Thunar: ownership to root

Sure, it would make changing permissions to and from root easier for those that aren't familiar with the command prompt.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB