User group management under Linux

Source: Internet
Author: User

User group management is divided into two categories

If you assign to a group what permissions, then the members will have what permissions

1. Private Groups

When you create a new user, you specify the group for the user. If not specified, a user group with the same user name is created by default, which is called a private group only if the user is a user.

2. Standard Group

accommodate multiple users in a group. If you use a standard group, you should specify the standard group that the user uses when creating a new user.

The configuration file for a group is/ETC/GRP, which is readable by all users, so only the name of the group is stored.

Each row represents a group, and each line is divided into 4 parts by 3 colons

The first column is the group name: the group name where the user is logged in

The second column is the password for the group, but generally does not set the password (setting the password for the group is generally insignificant)

The third column is the ID of the group, the identification number of the group

The fourth column is the list of users in the group, which belongs to all user names in the reorganization table

How do I add a user group?

Groupadd Group account Name

Change group account name: Groupmod-n newName oldname

Delete Group account number: The account name of the Groupdel group (the deleted account must exist and cannot be a private group for a user)

A user cannot delete a group that exists in the group.

User group management under Linux

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.