usermod - modify a user account
Follow @ggarronusermod - modify a user account
Once a user is already created, you can still modify its options and data, to do that use usermod
Syntax
- -d home directory
- -s starting program (shell)
- -p password
- -g (primary group assigned to the users)
- -G (Other groups the user belongs to)
Example
If you want to change the default login shell of a user user
usermod -s /bin/tsh user
Read the man page of usermod for more information