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

I have my root password, and just installed a keylogger for myself and after losing a long chunk of text i worked really hard on to a program crash. The keylogger installed just fine, using my root password in the terminal worked fine to, set the output file and started it. Now how do i look at the output file? Under permissions, it say's that only root can read/write. How do i log in as root?

share|improve this question
That is annoying indeed. It should ask if you want to open as administrator when you are in the admin group. Perhaps we can get it in 12.10? – Jo-Erlend Schinstad Apr 10 '12 at 7:46
up vote 5 down vote accepted

I wouldn't start a file browser instance with gksu to open a file. I would use:

gksudo gedit /the/full/path/to/the/file

Or any other text editor it's easy to copy paste multi-page text from for that matter.

share|improve this answer
Thanks, that worked :) – illyan Apr 10 '12 at 1:04
No problem. Do be careful with bouncing about as root though. Some editors save preference files that might get re-written as root and you can have problems down the road. – RobotHumans Apr 10 '12 at 1:06

Enable open as administrator in nautilus!

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below:

enter code here

sudo apt-get install nautilus-gksu

enter image description here

After installing that application run copy and paste the line below and press enter.

sudo cp /usr/lib/nautilus/extensions-2.0/ /usr/lib/nautilus/extensions-3.0/

enter image description here

Finally, log out and back in then go and test it, by clicking your right mouse click on the file you want to run as Admin and your see a popup menu with the words: open as administrater.

enter image description here

Visit: for help and from here.


share|improve this answer

First, Open Terminal Type:

gksu nautilus <location> 

will help to navigate as root.

sudo gedit <location>

will help to open / edit too.

share|improve this answer
Won't Gedit automatically be run as root if you run Nautilus as root and use it to open a file? – Jo-Erlend Schinstad Apr 10 '12 at 7:44

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.