Linux Command man explanation: Useradd: account creation or update

Source: Internet
Author: User

Linux Command man explanation: Useradd: account creation or update

name

Useradd-account creation or update of new user information

language method

Useradd [-C comment] [-D home_dir] [-e Expire_date] [-F inactive_time] [-G initial_group] [-G group[,...] [-M [-K Skeleton_dir] |-m] [-s Shell] [-U uid [-O]] [-N] [-R] Login

useradd-d [-G default_group] [-B default_home] [-F default_inactive] [-e Default_expire_date] [-S Default_shell]

describe

The new account number is established when the-D parameter is not added , the useradd instruction uses the command column to refer to Set the value of the new account and use the default values on the system. The new user account will generate some system files, user directories, copy the start files, etc., which can be specified using the command column options. This version is available for Red Hat Linux, which allows each newly added user to create individual group without the need to add the-n option. Useradd can be used with the option to

-C Comment

The description bar of the new account number password file.

-D Home_dir

The new account number is used every time you log in the home_dir. The default value is the login name in Default_home and is the name of the login directory.

-E Expire_date

The final date of the account number . The mm/dd/yy of the daily period is .

-F Inactive_days

after the number of days after the period of long - term stop right . when the value is 0 o'clock, the account is immediately deactivated. This function is turned off when the value is-1, and the default is-1

-G Initial_group

The group name or number is used as the user login start Group (group). The group name must be a name that exists already. Group numbers are also required for existing groups. The preset group number is 1.

-G group,[...]

to make this a bunch of people . A member of the groups. Each group uses?? The area can not be mixed with blank characters. The group name is limited to the-G option. Defines the starting group for which the value is a consumer.

-M

to keep The user 's eyes from the building of the movement . if You use the-K option, the files within the Skeleton_dir will be copied to the user


Linux Command man explanation: Useradd: account creation or update

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.