Supplemental Note: Useradd can be used to establish user accounts. After the account is built, then use passwd to set the password of the account. You can delete an account with Userdel. The account created using the USERADD directive is actually saved in the passwd text file.
Parameters: -c< notes > Plus note text. Note text is saved in the passwd notes field. -d< Login Directory > Specify the starting directory for users to log in. -D change preset value. -e< expiry date > Specify the expiration date of the account. -f< buffer days > Specify how many days after the password expires to close the account. -g< Group > Specify the group to which the user belongs. -g< Group > Specify the additional group to which the user belongs. -M automatically establishes the user's login directory. -M do not automatically create user login directories. -N cancels the establishment of a group in the name of the user. -R establishes the system account number. -s<shell> Specifies the shell to use when the user is logged in. -u<uid> specifies the user ID.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.