For Locking the account you can use
passwd -l {username}
For unlocking the account you can use
passwd -u {username}
Once the account is locked no person can login to the user via the locked account.
The change can be noticed in /etc/shadow's fie for the locked account.
The account can be locked only by the superuser or any user with that privelage.
passwd -l {username}
For unlocking the account you can use
passwd -u {username}
Once the account is locked no person can login to the user via the locked account.
The change can be noticed in /etc/shadow's fie for the locked account.
The account can be locked only by the superuser or any user with that privelage.