Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
2  
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

2 Answers 2

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

http://g-scripts.sourceforge.net/cat-executing.php

share|improve this answer
    
Also see askubuntu.com/a/128935/5032 –  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

 
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.