useradd and usermod are very often used utilities. They are several useful paramenters which we can use for the creation and maintenance of user accounts.
- -c (Comments and Descriptions of the account. Using quotation is necessary if you are using multiple words
- -d (home directory of the account. If -m is used, copy the home directory as well)
- -e (Assign a expiration date for the account in MM/DD/YYYY format)
- -f (Set the number of days after a password expires until the account is permanently disabled. The default option is -l which disable this option)
- -g (primary group that the account belongs to)
- -G (list of groups that user belongs to)
- -l (Change login name of the account to the name supplied after -l option)
- -u (Change the userid for the account)