Logon linux password

I have forgotten my linux logon password. Any ideas how I can get around thing and maybe reset it?
dburudiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

biardCommented:
You don't have your root password?
0
dburudiAuthor Commented:
correct! I have just set up linux S.U.S.E and got got up with so much that when I came back to it, it is waiting for me to enter the logon name and password but I cannot remeber it.
What do you think?
0
biardCommented:
You need to boot your system to you rootdisk that you (hopefully) created during install.  Then you need to mount your Linux partition:

mount /mnt /dev/hda1

where /dev/hda1 is your linux partition and /mnt is to be the mount point.  Then you need to go to the /etc/passwd file (which is not /mnt/etc/passwd).  Find the entry that says "root:xxxxxx:0:0:root:/:/bin/sh"

Delete everything between the first and second : symbols so that it now reads

"root::0:0:root:/:/bin/sh"

You will have to use vi or sed to edit the file. See

   http://spacsun.rice.edu/~fcm/sed.html

if you can't use vi and don't know how to use sed.

Save the changes, exit and reboot system to hard drive.  Now root has no password.  Be sure to give root one after getting back into Linux.

Good luck.

P.S.  If you have not rootdisk, try:

http://www.redhat.com/mirrors/LDP/HOWTO/Bootdisk-HOWTO-11.html

For more info see:

http://www.io.com/help/linux/Bootdisk-HOWTO-2.html#ss2.2

and

http://www.spade.com/linux/howto/Bootdisk-HOWTO-3.html

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.