How to disable user accounts temporarily

The Linux Operating system is a multi-user operating system,( more number of users can work at a same time in network). Any user can able to login their user account in their desired system in a network. This arises a little security problem. To avoid such problems one can lock/disable their user account temporarily instead of deleting their user account.

To¬†temporarily¬†deactivate an account, disable their use’s password with the -l (lock) flag.

#passwd -l sathish

Password changed

To re-enable, or unlock a user’s password use

#passwd -u sathish

Password changed

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Add a Comment

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