Disabling Accounts
You need to disable an account and temporarily prevent the user from logging in, but you don't want to delete the account.
To temporarily deactivate an account, disable the user's password with the -l (lock) flag:
# passwd -l aborg
Password changed.
To re-enable, or unlock, a user's password use:
# passwd -u aborg
Password changed.
You need to disable an account and temporarily prevent the user from logging in, but you don't want to delete the account.
To temporarily deactivate an account, disable the user's password with the -l (lock) flag:
# passwd -l aborg
Password changed.
To re-enable, or unlock, a user's password use:
# passwd -u aborg
Password changed.
0 Comments