Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

up vote 2 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
add comment

Your Answer

 
discard

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.