How do I see all the user and group information under Linux?

Source: Internet
Author: User

The/etc/group file is a configuration file for the user group.

The/etc/passwd file is the user's configuration file.

These two configuration files can be viewed and modified using commands such as cat, more, less, head, tail, and vim.

Description

/ETC/PASSWD file Content format: Registration name: Password: User id: Group ID: User name: Home directory: Command interpreter. Take the root user as an example. Root is the user registration name, x means the password is saved in/etc/shadow, the user ID is 0, the user group ID is 0, the user name is Root,home directory for/root, the interpreter/bin/bash.

/etc/group file Content format: Group name: Password Save location: Group ID: Group member. Take the root user group as an example, the group name is root, the password is saved in the/etc/shadow,root group GID is 0, the user under the group is the root user.

How do I see all the user and group information 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.