Lost Your Root's Password
Root is an administrator user in linux. It has unlimited power to configure the system. But, what you gonna do if you forget the password?
There are several ways to recover your root's password. The easiest way is using livecd. All you need is only livecd/dvd from any linux distros like PClinuxOS, Ubuntu, Mandriva Live, OpenSUSE live and etc.
And here the steps are:
1. Boot your linux livecd
2. Mount your old existing linux partition
ex: mount /dev/hdb1 /mnt/old-system
/dev/hdb1 is root (/) partition of your old linux system
/mnt/old-system refers to your directory in livecd
3. Edit the /etc/shadow file on your root partition
vi /mnt/old-system/etc/shadow
4. remove the encrypted passwords in the root's line
result from the step 3
There are several ways to recover your root's password. The easiest way is using livecd. All you need is only livecd/dvd from any linux distros like PClinuxOS, Ubuntu, Mandriva Live, OpenSUSE live and etc.
And here the steps are:
1. Boot your linux livecd
2. Mount your old existing linux partition
ex: mount /dev/hdb1 /mnt/old-system
/dev/hdb1 is root (/) partition of your old linux system
/mnt/old-system refers to your directory in livecd
3. Edit the /etc/shadow file on your root partition
vi /mnt/old-system/etc/shadow
4. remove the encrypted passwords in the root's line
result from the step 3
root:452342342342342342342342342342423Remove the red one.
bin:*:13612:0:99999:7:::
daemon:*:13612:0:99999:7:::
..............
root:5. Reboot your old system. Now the root's password is empty.
bin:*:13612:0:99999:7:::
daemon:*:13612:0:99999:7:::
..............