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?
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.
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?
gksu "chown -R $USER %F"
OK. Do you think these would be good additions to the Thunar - Custom page?