Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-06-2005, 11:04 PM   #1
Registered: May 2004
Location: Brampton, ONT.
Distribution: Ubuntu Hoary the Hedgehog
Posts: 90

Rep: Reputation: 15
Problem logging in Ubuntu

I just installed Ubuntu (hoary hedgehog) with the minimum options so that it only runs command line. the probel is that when i have to log in as root , it doesnt let me log in.

here is what i do

$ sudo su -
Password: ( i leave this blank as i have no password for root)

Login Incorrect

no option came during install to set root password. how do i log i as root?
Old 03-06-2005, 11:54 PM   #2
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
Ubuntu disables root access by default. You should use the sudo command. If you would like to enable root access you will need to edit /etc/shadow. On the first line (root) there should be an asterix between two colons, if you remove the asterix you will be able to log in as root with no password. Of course you will have to use sudo to edit the file. If you enable root, you should create a password for the account ASAP.

sudo nano /etc/shadow


Edit: When sudo asks for a password you need to specify yours not root's.

Last edited by twsnnva; 03-06-2005 at 11:56 PM.
Old 03-07-2005, 03:56 AM   #3
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
About sudo:
you type in your password - not root's!
('sudo' is intended for users who shouldn't have access to the root-account but need some root-privileges.)
twsnnva's solution is a good way, you could also use
# sudo passwd root
then type in your password.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem logging in cegha Mandriva 3 07-21-2005 12:25 AM
Problem Logging In BigSAR Mandriva 8 03-12-2005 12:37 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 03:55 AM
problem logging in with ssh FireAge Linux - Networking 4 07-03-2002 07:24 PM
problem logging in gchua Linux - General 3 10-11-2001 04:33 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration