LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2005, 06:33 PM   #1
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Rep: Reputation: 15
question about root


I just installed Ubuntu, and I don't believe I set up a root password. However, when I try to log in as root, it asks for a password, and if I leave it blank, it won't log in.

How do I log in as root without the password so that I can change it?

Would putting in the install cd and then mounting my harddrive, and using chroot to make the harddrive root work?

thanx
 
Old 04-06-2005, 06:39 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I have already answered you question in a previous post. Login as usual as a normal user, start a console/terminal, then do "sudo passwd root", enter a new password for root and your problem is solved.
 
Old 04-06-2005, 06:39 PM   #3
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
if i remember correctly, ubuntu doesn't offer an actual root account, rather you su to root from user to perform the things you need to do as root.

check this site out:ubuntu root stuff
 
Old 04-06-2005, 06:41 PM   #4
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Original Poster
Rep: Reputation: 15
>>I have already answered you question in a previous post. Login as usual as a normal user, start a console/terminal, then do "sudo passwd root", enter a new password for root and your problem is solved.>>

and I answered this by saying that it errors when I type sudo in. It doesn't let me do anything with it.


edit:
<<You can give root a password by doing "sudo root passwd" as a normal user.>>
actually, that's what you said. It was backwards, which may be why it didn't work. I'll go check it out the other way and see what happens.

Last edited by biojayc; 04-06-2005 at 06:44 PM.
 
Old 04-06-2005, 06:54 PM   #5
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Original Poster
Rep: Reputation: 15
tried it, doesn't work. The sudo command doesn't work at all because it doesn't recognize batman, which is my computer name. the reason I need to log in as root is because the file "/dev/hosts" needs to be editted I believe. However, because that file is wrong, I can't log in as root.

I think this is my problem. Basically I need to mount my filesystem and and get root access without any passwords. any ideas?
 
Old 04-06-2005, 07:35 PM   #6
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Original Poster
Rep: Reputation: 15
I think I got it all figured out now. Basically I had to put in the install cd, let it find my harddrive, mount my linux partition, and then make the changes to the /etc/hosts file that I needed to, reboot, and wala. Now I can use the sudo command just fine, and I can su to user and stuff. Thanx everyone for the help.
 
Old 04-06-2005, 10:58 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I corrected that post earlier on and should read "sudo passwd root".
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
root question manicman Linux - Newbie 2 11-03-2005 04:20 AM
root question. ratatat Linux - Newbie 7 12-27-2004 02:57 PM
Root question RockmanExe Mandriva 5 08-29-2003 03:43 PM
root question? indy317 Linux - General 5 05-20-2003 03:43 PM
root question spuppett Linux - General 4 03-01-2003 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:48 PM.

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