how do I log in as root

Asked by Shredhed on 2008-06-15

I am very new to Ubuntu, and I am trying to install software. Every time I go into terminal mode, I change to the directory needed, and run the command, only to be told I dont have permission to write in the location, and that I need to be logged in as root. Help :/

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Documentation Edit question
Assignee:
No assignee Edit question
Solved by:
Kito
Solved:
2008-06-15
Last query:
2008-06-15
Last reply:
2008-06-15
Best Kito (ejpastorino) said : #1

just type sudo before the command, that gives you root access.

$ sudo 'command'

if you want to be sudo all time, just type 'sudo su' and you can act as root.

$ sudo su
# now you can act as root

it will ask your password when you use it.

for more info see the man pages

Shredhed (shredhed1313) said : #2

Thanks Kito, that solved my question.