Add users under Linux

Source: Internet
Author: User

Groupadd Syntax Format:
Name
groupadd– Creating a new group
Grammar
Groupadd [-G gid [-o]] [-R] [-F] Group

For example:
Groupadd-g 1563 HQ

groupmod– Modifying a group
Grammar
Groupmod [-G gid [-o]] [-N group_name] Group
Groupmod parameter discussion:
Type description
-G to modify the user group ID, the new GID must be guaranteed to be unique in the system
-N Name the abbreviation of the word, meaning to change the name of the user group
Groupmod Examples and instructions:
Example 1: Change the System user group you just established HQ, change its user group ID to 234, while changing the user group name to CHONGPIG3
[Email protected] ~]# groupmod-g 234-n CHONGPIG3 HQ

Two, add change user

1. Change the user UID value
Usermod-u 10182 Huima
2. Change the UID GID value
Usermod-u 10182-g 1563 Huima

3. Add users and specify UID and GID values
Useradd huima-u 10182-g 1563
passwd Huima

Add users under Linux

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.