Linux Command Encyclopedia disk maintenance: Useradd

Source: Internet
Author: User
Keywords Linux Command Encyclopedia useradd disk maintenance
Tags aliyun command encyclopedia date directory disk disk maintenance function group

Function Description: Set up user account.

Grammar: useradd&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [-MMNR] [C < PS] [-D < Login directory] [e < expiry date] [F < buffer days] [G < Group] [G < Group] [-s <shell>] [-u <uid>] [user account] or useradd-d [-b][-e < expiration >][-f < buffer days >][-g < group >][-g < group >][-s <shell>]

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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.