Below command will help you to get details of empty password for any accounts in Linux.
# awk -F: '($2 == "") {print}' /etc/shadow
Lock all empty password accounts with below command
# passwd -l accountname
Unlock users:
#pam_tally2 --user oracle --reset --->Here Oracle is username
# awk -F: '($2 == "") {print}' /etc/shadow
Lock all empty password accounts with below command
# passwd -l accountname
Unlock users:
#pam_tally2 --user oracle --reset --->Here Oracle is username
No comments:
Post a Comment