Type in the simplest command to do this

CORRECT TEXT
User rick has been suspended from your company and you wish to lock his account to stop
anyone using it. Type in the simplest command to do this

CORRECT TEXT
User rick has been suspended from your company and you wish to lock his account to stop
anyone using it. Type in the simplest command to do this

Answer: passwd -l rick

Explanation:
We can lock the user account either usermod or passwd command.
#usermod –l username : Which locks the user account
#usermod –u username : which unlocaks the user account



Leave a Reply 3

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


tony

tony

It is uper case -L

Peter

Peter

Confirm: uppercase -L is for locking an acoount. Small -l is for changing the login to a new login.

Peter

Peter

passwd -l (small)
usermod -L (caps)