How can I disable some Linux account? By disabling it I do not want to remove the account and related files. Just user related operations will be prevented. If an user authentication occurs it will be not authenticated. We will use usermod command to lock user account. Disable/Lock User Account with usermod Command We will disable account with the following code.
$ usermod -L -e 1 test
usermod will change user account related attributes and information. -L will lock...