VCF 5.2
/usr/sbin/faillock --user root --reset
/usr/sbin/faillock --user vcf --reset
old versions
pam_tally2 --reset --user vcf
passwd vcf

grub menu process for root account
1. At the Photon screen, hit the 'e' key to get into the GRUB
2. Use the arrow keys to navigate to the line beginning with linux and add the following to the end of the line:
rw init=/bin/bash
3. Press the F10 key
4.
/usr/bin/pam_tally2 -u root -r
/usr/bin/pam_tally2 -u vcf -r
/usr/sbin/faillock --user root --reset
/usr/sbin/faillock --user vcf --reset
passwd vcf
passwd root
5. reboot -f
6. Then run the following command to clear the passwords
echo "" >/etc/security/opasswd 
7. Change expiry of accounts
chage -M 999 vcf
chage -M 999 root

By Kader

Leave a Reply

Your email address will not be published. Required fields are marked *