Posts: 1,028
SamK
Joined: 21 Aug 2011
#1
When working in a file manager it is handy to have an option in its menu to open an additional window that runs with root privileges.

The following adds an entry to the ROX-Filer menu,"New Window as root" (via right-click-->Send To).


Install the Script
  1. Download the zip file attached at the foot of this post
  2. As root extract it to /usr/local/bin/rox-as-root.sh

Set Up the Menu Entry in ROX-Filer
Do the following as your normal user in ROX-Filer
  1. Open the directory /home/USERNAME/.config/rox.sourceforge.net/SendTo/
  2. Drag-n-drop /usr/local/bin/rox-as-root.sh to it and create a symlink
  3. Right-Click on the symlink-->Rename it New Window as root
  4. Right-Click on the symlink-->Set icon. Select Only for the file...
  5. Drag-n-drop the icon file /usr/share/icons/antiX/rox-filer.png to the set icon box

To use, highlight a single file or directory, right-click-->Send To-->New Window as root and a root window will open in the same directory as the highlighted item.


Screen shot of it in action
Screen shot showing a selected file and displaying the menu entry.
Screen shot showing a selected file and displaying the menu entry.




Edit: 2013-Sep-27 Uploaded script again with minor edit to use ktsuss rather than gksudo or gksu. Both the latter two successfully open a root ROX-Filer but are unable to open Archive-Create or Archive-Extract from the ROX Send To menu. ktsuss works OK.