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.

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

3 Answers 3

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. –  hbdgaf Apr 10 '12 at 1:06
add comment

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/libnautilus-gksu.so /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: http://www.liberiangeek.net/2011/12/add-open-as-administrator-to-nautilus-context-menu-in-ubuntu-11-10-oneiric-ocelot/ for help and from here.

Enjoy!

share|improve this answer
add comment

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
1  
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
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.