by rameez » Mon Feb 23, 2015 11:50 am
While google, I got a perfect answer.
1.Login to single user mode.
2.init=/bin/sh at the end of line that starts with linux in Grub2 (In case of VMWare like KVM or VirtualBox use rb.break instead of inti=/bin/sh)
3.run mount -o remount,rw /sysroot when the system boots
4.run chroot /sysroot
5.run passwd
6.run touch /.autorelabel
7.run exit to leave chroot
8.run exit to logout