2008-12-26

Nautilus as Root in Ubuntu

Firstly, you can just run Nautilus as root from the command line with:

gksudo nautilus

The following procedure will add a root file browser to the Applications | System Tools menu.

I got this from http://ubuntuforums.org/archive/index.php/t-256998.html.

Create a text file with:

gksudo gedit /usr/share/applications/Nautilus-root.desktop

Add these lines to the file:

[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;

Open Nautilus with: Applications -> System Tools -> File Browser (Root)

An Alternative

This is from a comment by Cerebrux to this post:

1) Open Synaptic and install the "nautilus-gksu"

2) Logout- Login

3) And now do right-click on a folder and "open as administrator".

P.S. If you want the "open terminal here" in your right-click, then just install "nautilus-open-terminal"

Firstly, you can just run Nautilus as root from the command line with:

gksudo nautilus

The following procedure will add a root file browser to the Applications | System Tools menu.

I got this from http://ubuntuforums.org/archive/index.php/t-256998.html.

Create a text file with:

gksudo gedit /usr/share/applications/Nautilus-root.desktop

Add these lines to the file:

[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;

Open Nautilus with: Applications -> System Tools -> File Browser (Root)

An Alternative

This is from a comment by Cerebrux to this post:

1) Open Synaptic and install the "nautilus-gksu"

2) Logout- Login

3) And now do right-click on a folder and "open as administrator".

P.S. If you want the "open terminal here" in your right-click, then just install "nautilus-open-terminal"

2 comments:

Anonymous said...

Simply

1) Open Synaptic and install the "nautilus-gksu"

2) Logout- Login

3) And now do right-click on a folder and "open as administrator".

P.S. If you want the "open terminal here" in your right-click, then just install "nautilus-open-terminal"

Pietro said...

Great!
Thank you very much, this is exactly what I was looking for.