Xfce Forum

Sub domains
 

You are not logged in.

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

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

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

Online

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

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,333

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.

Offline

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

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

Re: Thunar: ownership to root

Excellent, thanks!


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Online

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

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

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

Online

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

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,333

Re: Thunar: ownership to root

Try:

gksu "chown -R $USER %F"

Offline

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

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

Re: Thunar: ownership to root

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


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Online

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

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,333

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.

Offline

Board footer

Powered by FluxBB