user disable – POFTUT

Tagged: user disable


How To Disable or Lock Linux User Account?

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 will change user account related attributes and information. -L will lock...

Enjoy this blog? Please spread the word :)