Where Are Groups Stored in Linux

The primary user’s group is stored in the /etc/passwd file and the supplementary groups, if any, are listed in the /etc/group file. One way to find the user’s groups is to list the contents of those files using cat , less or grep .

How do I find group files in Linux?

  1. You may want to see a list of groups. …
  2. Group information of Linux OS can be checked in the /etc/group file. …
  3. It is possible to log in to the specified group by using the newgrp command.
  4. The /etc/group file is readable by all users.

Which file stores the list of groups?

The list of users is usually stored in the /etc/passwd file, while the /etc/shadow file stores hashed passwords.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest