To unlock,
chuser account_locked=false user
or
chsec -f /etc/security/user -a account_locked=false -s user
To lock,
chuser account_locked=true user
or
chsec -f /etc/security/user -a account_locked=true -s user
Sharing Knowledge | System Admin Articles
What do you think about this Article? Add your Opinion..! EmoticonEmoticon