Mar 4, 2012

Tunnelier Download (Bitvise)

Tunnelier Download (Bitvise)

Forgot Linux Password CentOS

This may seem obvious to some but I very new to Linux, and I have a hard time reading guides, as most of whats on the internet are bits and pieces, there doesn't seem to be exact specifc steps to anythine you want to do, for the newcommers, so I've written this quick easy post for my reference, and for anyone else who so happens to stubble upon it. :)
Don't know what happened but somehow I forgot may password, and was stuffed, I didn't want to reinstall my CentOS, so with a bit of Google i found this, however I'm posting this to make it clear the actual specific steps you have to go through in order to change your password:

1. Reboot your Linux machine with the installation dvd/cd/etc. (you may have to hit F12 key to allow you to select the appropriate boot device e.g. CDROM.
2. At the command/boot prompt (boot::) type linux rescue and hit enter.
3. Then type: chroot /mnt/sysimage and hit enter.
4. Then type: passwd root or passwd username (obviously replace username with the user/login you want to change the password for, if the user does not exists it will say so after running hte command. don't forget to hit enter at the command.
5. Now type in the password you want and hit enter
6. Now type it in again, and hit enter
7. Now type exit and hit enter
8. Now type exit again and hit enter to reboot
all done.

Good Luck