Showing posts with label reset root password. Show all posts
Showing posts with label reset root password. Show all posts

Sunday, May 19, 2013

Unlock a user account on Aix


Run the below commands to unlock the user account on Aix

#chsec -f  /etc/security/lastlog -a "unsuccessful_login_count=0" -userid
#chuser "account_locked=false" -userid

Reset Root Password on Linux (RHEL, Ubuntu)

Try and enter the run-level 1, if you already know it then follow the step 4 below.

1. Stop the system at the Grub Screen.
2. Use the arrows to select the boot entry you want to modify,  press e to edit the entry.
3. Use the arrows to go to kernel line , press e to edit this entry , at the end of the line add the word single

Press ESC to go back to the parent menu, press b to boot this kernel

4. Run passwd command to reset the password.