Logon linux password

I have forgotten my linux logon password. Any ideas how I can get around thing and maybe reset it?
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.

You don't have your root password?
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?
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


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


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:


For more info see:




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

From novice to tech pro — start learning today.