Linux basic Commands-group account management

Source: Internet
Author: User

One, group account file

The group account file consists of two parts:/etc/group,/etc/gshadow, which holds the group account name, GID number, group members and other information, the latter is used to save the group account of the encrypted string, etc. (but rarely used).


Second, add, delete, modify group account

1. Groupadd command--Add group account

Command format: Groupadd "Options" group account

    • -G: Specify GID number

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7C/BF/wKioL1bXp9PCV_G6AAA6nANveH0800.jpg "title=" 1.jpg " alt= "Wkiol1bxp9pcv_g6aaa6nanveh0800.jpg"/>


2. GPASSWD command--Add, set, delete group members

Command format: gpasswd "Options" Member name Group name

    • -A: Adding members

    • -D: Remove members

    • -M: Specify all member users of the group account at the same time

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7C/C1/wKiom1bXqgPQLwjTAACOunT543E956.jpg "title=" 2.jpg " alt= "Wkiom1bxqgpqlwjtaacount543e956.jpg"/>

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/7C/C0/wKioL1bXq1qA2BzNAABbfBkUW4o698.jpg "title=" 3.jpg " alt= "Wkiol1bxq1qa2bznaabbfbkuw4o698.jpg"/>


3,groupdel Command--delete group account

Command format: Groupdel Group name

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/7C/C0/wKioL1bXrCXyxJ17AAANp4J-D1w191.jpg "title=" 4.jpg " alt= "Wkiol1bxrcxyxj17aaanp4j-d1w191.jpg"/>

This article is from the "New Start" blog, so be sure to keep this source http://yuanshuai.blog.51cto.com/10539781/1747057

Linux basic Commands-group account management

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.