LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-20-2006, 03:25 AM   #1
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Rep: Reputation: 15
forgotten root password, shadow entry removed


Hey all,
I just installed SuSE 10.1 on another of my machines, however somehow, highly stupidly I typed the incorrect root password twice when making it and now I cant for the life of me remember what it was, I read the how to on how to recover root passwords and went the method of using knoppix boot cd and deleting the password part of the /etc/shadow file, I also deleted the same part in the /etc/shadow.YaST2save file. This hasn't allowed me to enter root, it gives me some error about the password security not being good enough then says invalid password. I guess Im just being lazy but I dont want to reinstall SuSE, it takes like an hour and I want to know how to do this if i need to in the future!
 
Old 07-20-2006, 03:42 AM   #2
Indkoeti
Member
 
Registered: Oct 2005
Distribution: gentoo
Posts: 50

Rep: Reputation: 15
Maybe you could add your normal user to the sudoers, so you can change to the root acount with the simple [HTML]sudo su[/HTML] and then change the password. I think you have to add your normal user to the /etc/sudoers file ( with konppix) to be able to do that.
 
Old 07-20-2006, 03:47 AM   #3
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
though i have no experience with suse, the correct way to reset lost root password is to boot in single-user mode then change the password for root since single-user mode doesn't asks you for a login.
 
Old 07-20-2006, 03:47 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
how about boot into single-user mode, and then change password?

edit: damn it
 
Old 07-20-2006, 03:50 AM   #5
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
Quote:
Originally Posted by spooon
how about boot into single-user mode, and then change password?

edit: damn it
oops! sorry man.
 
Old 07-20-2006, 10:03 AM   #6
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
Mabye SuSE did it a bit different. I have used your method for FC without any problem. That's interesting.
 
Old 07-20-2006, 07:41 PM   #7
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Original Poster
Rep: Reputation: 15
hmmm, well thanks for all this input, I initially tried the whole single user mode but upon booting SuSE gives out some error and cant boot single user with init=/bin/bash; I think maybe it's a security modification SuSE put in their version of the kernel perhaps? Im gonna try that modifying the sudo file now, see if that helps...
 
  


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
if the root password is forgotten..... AnimaSola Linux - Software 1 05-31-2005 10:12 PM
How to reset forgotten root password comprookie2000 Linux - Newbie 4 10-28-2004 12:33 PM
forgotten my root password, help amanjsingh Linux - Newbie 16 03-31-2004 09:41 PM
Forgotten my root password Blondie Linux - Newbie 2 12-08-2003 11:50 AM
Root Password FORGOTTEN kajensen Linux - Newbie 4 08-11-2003 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:10 AM.

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