Answer the question
In order to leave comments, you need to log in
How can I add root access to the nautilus context menu?
In older versions of Linux (before ubuntu 18), it was possible to add Nautilus to the default explorer, in the context menu, the item - open a folder / file with Root rights.
This could be done by creating a script file with the commands:
sudo su
gedit .gnome2/nautilus-script/Open\ as\ root
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
sudo chmod +x .gnome2/nautilus-script/Open\ as\ root
Answer the question
In order to leave comments, you need to log in
you can use such a script, or you can replace gksudo with sudo in yours
#!/bin/bash
sudo nautilus [email protected]
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question