Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Following the standard recommendation I use my Linux system with a normal account and switch to root only in special cases.

When browsing the file system using GUI sometimes an error pops up - You do not have privelige to view the contents of this folder.

At this point what I have to do is open up the terminal, switch to root using su, navigate to that directory and then list the contents using ls.

This is really tiresome and annoying. Wouldn't it be convenient if you could just right click on a directory or program in the GUI itself and have an option like Open as Root or Run as Root?

Is this possible in Linux?

I'm using GNOME 3.4.

Edit: Please no answers like directories are unaccessible for a reason. I'm not talking about free access to any directory/program but about authenticating using GUI.

share|improve this question
Are you using GNOME 2 or 3? – Renan Sep 1 '12 at 5:07
Well, 1. if the directories aren't readable for you there's usually a good reason for it and 2. my Nautilus version 3.4.2 has exactly such an option as you describe. What system are you on precicely? I suppose you could always start nautilus as user root and use that to browse your fs. However, this may also not be what you want. – Bananguin Sep 1 '12 at 5:20
@user1129682 Launching nautilus as root is a good way. I tried 'su', 'nautilus' and it works. You should make that an answer. – Kshitiz Sharma Sep 1 '12 at 5:46
@Kshitiz Sharma: no it's not. – Bananguin Sep 1 '12 at 5:57
up vote 5 down vote accepted

Press AltF2 to run a command and then enter gksu nautilus (using gksu is the recommended way to open GUI's with root permissions). There's a nautilus script that allows you to open a directory as root, look for nautilus-gksu on your repositories.

share|improve this answer

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.