|
Do you want to just disable the user, or completely delete the account from the system?
To simply lock a user out, you could use "usermod -L username", to reverse this you would use "usermod -U username".
If you wanted to delete just the user's login information you would do "userdel username", and if you wanted to remove the user and their /home directory (all of their personal files and directories), you would use "userdel -r username".
|