LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-13-2006, 04:39 PM   #1
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Rep: Reputation: 30
How to login if I didnt set a root password and no user?


I installed suse 10.1 and at the very end, something went wrong with the install. Anyways, now the system boots but I had not set any root password, and no user. How the hell am I supposed to log in now?? Hope I dont have to install the system over again....

Hopefully this is an easy question for you guys...

Cheers!
 
Old 05-13-2006, 04:59 PM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Rep: Reputation: 45
what stage does it get you too when you boot the system up ?

Because you can usually get into a system in single user mode, though when I've been meddling before, just because I didn't make a root password or user, it (mandrake, ages ago) would still log me into root, even though I didn't set the pword.

If it's the only thing it can log you into, then normally it would/should go there - hence first question.

If it won't start graphically, but opens at a # prompt then great, thats in root. You could just add a password for root and then create a user account. If it starts graphically, still do the same i.e. the root password then user and user password.

regards

John

p.s. Whats the problem with just doing a re-install ? If nothing else, it will familiarise you with the install proceedures. Sure it's not necessarily the correct way of doing things, but hey! if it works, then just do it!

Last edited by bigjohn; 05-13-2006 at 05:00 PM.
 
Old 05-13-2006, 05:11 PM   #3
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
No I get to the usual graphical login prompt... When I type root, and password root, it doesnt let me go through....
 
Old 05-13-2006, 06:06 PM   #4
Xolo
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354
Blog Entries: 3

Rep: Reputation: 30
How about logging in as root, but without a password?
 
Old 05-13-2006, 06:07 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,739

Rep: Reputation: 298Reputation: 298Reputation: 298
Since you did not create a root/password, nor a user/password, try just tabbing through the login and password.

If that doesn't work, try booting from the installation cd, and select anything that has to do with system rescue or system repair. Then work your way through to the part about setting up users and passwords.

If that doesn't work, bite the bullet. Then re-install.
 
Old 05-13-2006, 10:28 PM   #6
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Rep: Reputation: 15
If you have a live CD like Knoppix, you should be able to boot into that and then edit the /etc/shadow file on your installation's disk to remove the passwords on any accounts that were set up (they are the random characters that will appear between the first and second colons ( : ) on each line -just delete those characters and leave the two colons in place).

I was able to use this approach to gain access to a Sun JDS Linux installation on a co-worker's laptop for which we didn't have any of the passwords (the first owner had left the company). Sun's JDS Linux is based on Suse, so I expect the approach will work fine for you. You can then log in to any of the accounts using a blank password (just hit enter) and subsequently use the passwd command to set real passwords for each.
 
Old 05-13-2006, 10:44 PM   #7
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
Quote:
Originally Posted by lonecrow
I installed suse 10.1 and at the very end, something went wrong with the install. Anyways, now the system boots but I had not set any root password, and no user. How the hell am I supposed to log in now?? Hope I dont have to install the system over again....

Hopefully this is an easy question for you guys...

Cheers!
Why bother trying to fix a bad "fresh" install? Sounds fishy to me. I say your SOL and just re-install.

If you can't do a re-installation then it only makes it seem like your trying to get around the root login security.

KC
 
Old 05-14-2006, 07:56 PM   #8
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
It was my MD5Sum that wasnt correct, so the installed crashed. I re-burned the ISO and everything works magic now
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Cannot set root password zener Ubuntu 11 01-27-2007 12:40 PM
Set root password unexpired dwarf007 Linux - Newbie 4 12-12-2005 01:49 PM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
What should I do to set root password backpacker Linux - Newbie 1 06-10-2005 03:19 AM


All times are GMT -5. The time now is 12:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration