
How to open a file or folder with a right click with root privileges
Sometimes you need to open a file or folder with root privileges. To save time, you can add the item Scripts -> Open as root to the context menu.
To do this, open the command line and paste:
In the document that opens, add: Save the document Paste into the command line: CHECK: Right-click on any file or folder, find Scripts -> Open as root If it doesn’t work, reboot.
To do this, open the command line and paste:
sudo su
gedit .gnome2/nautilus-scripts/Open\ as\ root
In the document that opens, add: Save the document Paste into the command line: CHECK: Right-click on any file or folder, find Scripts -> Open as root If it doesn’t work, reboot.
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
sudo chmod +x .gnome2/nautilus-scripts/Open\ as\ root