Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Google   


groups

The external groups command displays the groups to which you or a user belongs. All users belong to a group. The fourth colon-separated field of the /etc/passwd file defines the primary group to which you belong. You may also belong to other groups by being listed beside a group in the /etc/group file. You have group permissions for files or directories owned by one of the groups to which you are a member.The groups command is used to display all of the groups to which you belong. You may find it helpful to belong to several groups so you have certain access permissions for various directories and files.

 

Following is the general format of the groups command.

       groups [ user ... ]

Arguments

The following argument may be passed to the groups command.

user You can specify a list of users whom you want to know to which groups they belong.

The groups command reads your user name and group ID from the /etc/passwd file, then searches the /etc/group file for any additional groups to which you belong.


Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.

Last modified: February 28, 2008