Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-20-2006, 04:25 AM
|
#1
|
LQ Newbie
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25
Rep:
|
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!
|
|
|
07-20-2006, 04:42 AM
|
#2
|
Member
Registered: Oct 2005
Distribution: gentoo
Posts: 50
Rep:
|
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.
|
|
|
07-20-2006, 04:47 AM
|
#3
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
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.
|
|
|
07-20-2006, 04:47 AM
|
#4
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
how about boot into single-user mode, and then change password?
edit: damn it
|
|
|
07-20-2006, 04:50 AM
|
#5
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
Quote:
Originally Posted by spooon
how about boot into single-user mode, and then change password?
edit: damn it
|
oops! sorry man.
|
|
|
07-20-2006, 11:03 AM
|
#6
|
Member
Registered: Mar 2004
Posts: 135
Rep:
|
Mabye SuSE did it a bit different. I have used your method for FC without any problem. That's interesting.
|
|
|
07-20-2006, 08:41 PM
|
#7
|
LQ Newbie
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 02:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|