Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to setup nautilus so that when my user attempts to view a folder owned / locked by root, it asks for the root password?

Kind of like running a nautilus browser using sudo, from the terminal.

share|improve this question
I wish the standard behavior was like that! – Anonymous Nov 1 '11 at 19:25
And then it should color the background of the folder to remind you that you are in root territory and can damage things. And color the root-owned folders, too. – endolith Nov 15 '12 at 19:13
possible duplicate of Where is the »open as administrator« option in Nautilus gone? – Takkat Nov 15 '12 at 21:36

A good place to start at look for nautilus scripts here.

share|improve this answer
Also see – endolith Nov 15 '12 at 20:20

Install gksu nautilus-gksu libgksu2-0 for nautilus to right click and open as administrator.

press Ctrl+Alt+T copy and paste this:

sudo apt-get install gksu nautilus-gksu libgksu2-0

once it installs

then nautilus -q

now you have right-click properties for admin

edit: This used to work for 11.04 however please see this link Where is the »open as administrator« option in Nautilus gone?

The first answer explains the workarounds.

share|improve this answer
Doesn't work anymore. E: Unable to locate package nautilus-gksu – endolith Nov 15 '12 at 19:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.