A linux command (31) every day:/etc/group file details

Source: Internet
Author: User
A linux command (31) every day:/etc/group file detailed links: A linux command every day (1): ls command running (2): cd command http://www.2cto.com/ OS /201210/163050.html#every day.
One linux command every day (31):/etc/group file detailed links: One linux command every day (1): ls command http://www.2cto.com/os/201210/163049.html ; One linux command every day (2): cd command http://www.2cto.com/os/201210/163050.html ; One linux command every day (3): pwd command http://www.2cto.com/os/201210/163462.html ; One linux command every day (4): mkdir command http://www.2cto.com/os/201210/163463.html ; One linux command every day (5): rm command http://www.2cto.com/os/201210/163662.html ; One linux command (6) every day: rmdir command http://www.2cto.com/os/201210/164017.html ; One linux command (7) every day: mv command http://www.2cto.com/os/201210/164247.html ; One linux command every day (8): cp command http://www.2cto.com/os/201210/164254.html ; One linux command every day (9): touch Command http://www.2cto.com/os/201211/165699.html ; One linux command every day (10): cat command http://www.2cto.com/os/201211/165989.html ; One linux command every day (11): nl command http://www.2cto.com/os/201211/165990.html One linux command every day (12): more command http://www.2cto.com/os/201211/165994.html One linux command every day (13): less command http://www.2cto.com/os/201211/165998.html One linux command every day (14): head Command http://www.2cto.com/os/201211/166191.html One linux command every day (15): tail command http://www.2cto.com/os/201211/168702.html One linux command every day (16): which command http://www.2cto.com/os/201211/168890.html A linux command (17) every day: whereis command http://www.2cto.com/os/201211/168893.html One linux command (18) every day: locate command http://www.2cto.com/os/201211/168895.html One linux command every day (19): find command overview http://www.2cto.com/os/201211/168897.html One linux command every day (20): find command exec http://www.2cto.com/os/201211/168901.html One linux command (21) every day: find command xargs http://www.2cto.com/os/201211/168903.html A linux command (22) every day: detailed description of the parameters of the find Command http://www.2cto.com/os/201211/168912.html A linux command (23) every day: Linux directory structure http://www.2cto.com/os/201211/170430.html One linux command every day (24): Linux file type and extension http://www.2cto.com/os/201211/170431.html One linux command every day (25): Explanation of linux file attributes http://www.2cto.com/os/201211/170434.html One linux command every day (26): use SecureCRT to upload and download files http://www.2cto.com/os/201211/172022.html One linux command every day (27): linux chmod command http://www.2cto.com/os/201211/172028.html One linux command every day (28): tar command http://www.2cto.com/os/201212/172641.html One linux command (29) every day: chgrp command http://www.2cto.com/os/201212/172983.html One linux command every day (30): chown command http://www.2cto.com/os/201212/173239.html Both the Linux/etc/group file and the/etc/passwd and/etc/shadow files contain files related to the system administrator's management of users and user groups. The linux/etc/group file is a file on which the system administrator manages users and user groups. all information about the linux user group is stored in the/etc/group file. A user Group is a collection of users with some common features ). The user Group configuration files include/etc/group and/etc/gshadow./etc/gshadow is the encrypted information file of/etc/group. Grouping users at www.2cto.com is a way to manage users and control access permissions in Linux. Each user belongs to a user group. a group can contain multiple users, and a user can belong to different groups. When a user is a member of multiple groups at the same time, the main group to which the user belongs is recorded in the/etc/passwd file, that is, the default group to which the user belongs during logon, other groups are called additional groups. All user group information is stored in the/etc/group file. The format of this file is separated by a colon (:). The fields are as follows: Group name: Password: group ID number: Group User list specific explanation: Group name: the group name is the name of the user group, which consists of letters or numbers. Same as the login name in/etc/passwd, the group name should not be repeated. Www.2cto.com password: the password field stores the encrypted password of the user group. Generally, users in Linux do not have a password, that is, this field is generally blank, or *. Group ID: similar to the user ID, the group ID is also an integer used internally to identify the group. GID. group user list: a list of all users in this group. different users are separated by commas. This user group may be the user's primary group or an additional group. Example: output: [root @ localhost test6] # cat/etc/grouproot: x: 0: root, linuxsirbin: x: 1: root, bin, daemondaemon: x: 2: root, bin, daemonsys: x: 3: root, bin description: We use root: x: 0: root, linuxsir as an example: User Group root, x is the password segment, indicates that no password is set, GID is 0, and the root user group includes root, linuxsir, and other users whose GID is 0.
 

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.