how to login as root

Asked by asma on 2007-07-03

how can I log in to Ubuntu 7.04 as root?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
Alan
Solved:
2007-07-05
Last query:
2007-07-05
Last reply:
2007-07-03
Best Alan (alanloughlin) said : #1

normally you don't do things like this in Ubuntu, instead you elevate your privaleges using the sudo of gksudo command.

sudo is for terminal based applications
gksudo is for gui based applications.

you could also run a terminal session as root by typing "sudo su" that way evey command used has root privilages and you don't need to remember the "sudo" before everything.

If your absolutely adamant you want to log in as root, first you have to set the root account with a password:

load a terminal and type "sudo passwd root" without quotes, you will probably have top type your password first, then you can set a password for the root account.

Hope this helps.

asma (a-elmangosh) said : #2

Thanks Alan, that solved my question.