To disable a user account in Linux, you can use the "usermod" command with the "-L" option. This will lock the user account, preventing the user from logging in.
For example, to disable the user account "john", you can use the following command:
sudo usermod -L johnSourcw:eww.lautturi.com
This will lock the user account, and the user will not be able to log in until the account is unlocked.
To unlock the user account, you can use the "usermod" command with the "-U" option. For example:
sudo usermod -U john
This will unlock the user account, allowing the user to log in again.
Note: Disabling a user account will not delete the user's files or settings. If you want to completely remove a user from the system, you can use the "userdel" command.