1: a common set of operating scenarios:
- Group: Basic group (private group), an additional group
- New group: groupadd group account name
- Specifies the GID New: groupadd -g GID Group Account Name: groupadd -g 1000 group1
- Add a user to the group:
- Change user attributes: usermod -g 1000 user01
- Adding a user into the group: gpasswd -a user02 group1
- Group within the definition of a plurality of users (comma separated): gpasswd -M user1, u2, u3 group1;
- Remove users from the group: gpapsswd -d user01 group1
- To delete a group account: groupdel group account name: groupdel group1; Note: userdel -r username, the basic set of information is deleted
2: User identity:
- Identifies the user's body: id username;
- User belongs to group identity: groups username;
- View user login information: users, who, w