For Ubuntu <= 10.10 , 10.04
Is an extension that grants root privileges using gksu nautilus.
It enables an option when you right-click on a file (also directories and other...) in nautilus: "Open as administrator".
After installing it restart Nautilus (killall nautilus
) and it will have the new feature.

Ubuntu 11.04 and 11.10,
install nautilus-gksu
and copy and paste the libnautilus-gksu.so
file from /usr/lib/nautilus/extensions-2.0/
to /usr/lib/nautilus/extensions-3.0/
Ubuntu 12.04 & 12.10:
The nautilus-gksu
package has been dropped in Ubuntu 12.04 and 12.10 since gksu
2.0.2-6ubuntu1 release, so you can not install it easily. Here I’m going to use a nautilus script to add Open As Administrator functionality.
First download the libnautilus-gksu.so
file:
Click to Download libnautilus-gksu.so
Then, run gksudo nautilus in terminal Ctrl+Alt+T to open the file browser with root privilege, copy and paste this file to /usr/lib/nautilus/extensions-3.0/
. Or do it with this command:
sudo cp ~/Downloads/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0/
Log out and back in, or run this command to take effect:
nautilus -q

Source
gksu
andgksudo
work in Xorg but not in Wayland (which is default in Ubuntu 17.10). But there are ways to make it work. See this link, Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?