Friday, 21 June 2013

Breaking root password


  1. Keep pressing 'esc' during booting.
  2. Press 'e' edit.
  3. Move Selection to 2nd line.
  4. Press 'e' edit
  5. Enter ' 1' -->one space 1
  6. Press enter
  7. Press 'b' boot
  8. Now your system is in single user mode
  9. Check selinux status  #getenforce
  10. Set selinux to 0(zero) i.e. disabled/permissive  #setenforce 0
  11. Now change password  #passwd
  12. Set selinux to 1, i.e. Enforcing  #setenforce 1
  13. Make the changes persistent in #find /etc -name selinux --> /etc/sysconfig/selinux 
  14. #vim selinux -->SELINUX=permissive/disabled/enforcing
  15. Reboot your system  #init 6


No comments:

Post a Comment