- Keep pressing 'esc' during booting.
- Press 'e' edit.
- Move Selection to 2nd line.
- Press 'e' edit
- Enter ' 1' -->one space 1
- Press enter
- Press 'b' boot
- Now your system is in single user mode
- Check selinux status #getenforce
- Set selinux to 0(zero) i.e. disabled/permissive #setenforce 0
- Now change password #passwd
- Set selinux to 1, i.e. Enforcing #setenforce 1
- Make the changes persistent in #find /etc -name selinux --> /etc/sysconfig/selinux
- #vim selinux -->SELINUX=permissive/disabled/enforcing
- Reboot your system #init 6
Friday, 21 June 2013
Breaking root password
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment