Xfce Forum

Sub domains
 

You are not logged in.

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

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

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-15 (based on Debian Stable) with Xfce 4.12 on Acer Aspire One 722

Offline

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

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,752

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.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

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

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

Re: Thunar: ownership to root

Excellent, thanks!


MX-15 (based on Debian Stable) with Xfce 4.12 on Acer Aspire One 722

Offline

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

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

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-15 (based on Debian Stable) with Xfce 4.12 on Acer Aspire One 722

Offline

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

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,752

Re: Thunar: ownership to root

Try:

gksu "chown -R $USER %F"

How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

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

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

Re: Thunar: ownership to root

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


MX-15 (based on Debian Stable) with Xfce 4.12 on Acer Aspire One 722

Offline

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

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,752

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.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

Board footer

Powered by FluxBB