usermod command or modify user is a command in Linux that is used to change the properties of a user in Linux through the command line. After creating a user we have to sometimes change their attributes like password or login directory etc.
What is usermod in Ubuntu?
The usermod command modifies or alters any attributes of a previously created user account via command line.In some situations, an administrator would need to change the existing attributes of an already created user like the login name, the home folder of the user, the password expiry date.
What does Sudo usermod do?
Adding sudo Users With usermod Command
The usermod command allows us to add/edit groups that a user is in. For adding users to sudoers with the usermod command, we simply need to add the user to the sudo group.