Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

group(5) [x11r4 man page]

GROUP(5)                                                     Linux Programmer's Manual                                                    GROUP(5)

NAME
group - user group file DESCRIPTION
The /etc/group file is a text file that defines the groups on the system. There is one entry per line, with the following format: group_name:password:GID:user_list The fields are as follows: group_name the name of the group. password the (encrypted) group password. If this field is empty, no password is needed. GID the numeric group ID. user_list a list of the usernames that are members of this group, separated by commas. FILES
/etc/group BUGS
As the 4.2BSD initgroups(3) man page says: no one seems to keep /etc/group up-to-date. SEE ALSO
chgrp(1), gpasswd(1), groups(1), login(1), newgrp(1), sg(1), getgrent(3), getgrnam(3), gshadow(5), passwd(5) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2016-10-08 GROUP(5)

Check Out this Related Man Page

GROUP(5)                                                     Linux Programmer's Manual                                                    GROUP(5)

NAME
group - user group file DESCRIPTION
The /etc/group file is a text file that defines the groups on the system. There is one entry per line, with the following format: group_name:password:GID:user_list The fields are as follows: group_name the name of the group. password the (encrypted) group password. If this field is empty, no password is needed. GID the numeric group ID. user_list a list of the usernames that are members of this group, separated by commas. FILES
/etc/group BUGS
As the 4.2BSD initgroups(3) man page says: no one seems to keep /etc/group up-to-date. SEE ALSO
chgrp(1), gpasswd(1), groups(1), login(1), newgrp(1), sg(1), getgrent(3), getgrnam(3), gshadow(5), passwd(5) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2016-10-08 GROUP(5)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

need help with cygwin installation

Hi all, I am new to this group and only have some basic knowledge of Linux. Does anyoone in the group have experience with installing and setting up cygwin which is needed along with the secure shell for performing remote login operations. My problem description is as follows: Client... (2 Replies)
Discussion started by: asquare
2 Replies

2. Programming

GROUP BY clause functionality in a C Program

Hi All, How can I obtain a GROUP BY functionality from a C program on a File.... suppose the file is like this... Quantity Fruit 20 Mango 30 Mango 80 Banana 200 Apple 90 Banana 100 ... (2 Replies)
Discussion started by: avdtech
2 Replies

3. Shell Programming and Scripting

Substitute to GROUP BY function

Hi All, I really need a help on this thing. Most of us are aware about the group by function in Oracle. Do we have a substitute ( not necessarily a single line command) to it in Unix? Let me put it this way. I have a file whose content is like file1-: ID1,ID2,ID3,ID4,ID5 1,2,3,123,5... (3 Replies)
Discussion started by: rinku11
3 Replies

4. UNIX for Dummies Questions & Answers

Application Account with System GID - Confirm or rebut my though on the risk?

You guys tell me. Am I wrong on this one? If so, where is the hole in my thoughts? Thanks, Duke Specs: Solaris version of Unix "ROOT" primary group is "other" (GID = 1) Application account (not system account) is assigned to the "other" GID (1). Issue: Application... (3 Replies)
Discussion started by: F150 Duke
3 Replies

5. Shell Programming and Scripting

Diffferentiate group from users

Im trying to put all the groups in into a variable called $GROUP, however in /etc/group there are also lotsa users. And the GID of group can differ as it can be set, this there is no specific range, how can i put all the names of the groups into that variable? (3 Replies)
Discussion started by: dplate07
3 Replies

6. Shell Programming and Scripting

Help on capturing /etc/group info.....!!

Gurus I am trying to capture all the data in /etc/group file in a CSV ,thru a fingerprinting engine. For hosts having ,unique group names and Ids ,following code works fine. Trouble starts when on a host,there are multiple groups defined with same name and id. e.g One of my hosts has 8... (10 Replies)
Discussion started by: ak835
10 Replies

7. Shell Programming and Scripting

Nested for loops

Greetings All, The following script attempts to enumerate all users in all groups in the group file(GROUP) and echo the following information: GROUP ---> USER The script is as follows: IFS="," for GROUP in `ypcat -k group | cut -d" " -f1` do for USER in `ypcat -k group... (13 Replies)
Discussion started by: jacksolm
13 Replies

8. Shell Programming and Scripting

Append users if GID exists

I have thousands of users assigned various roles. The role header defines the GID that they should have. If I can get all the GID information into /etc/group format I can upload the output file and easily assign all users into the desired GID. Right now I can get an output file like this:... (5 Replies)
Discussion started by: MaindotC
5 Replies

9. UNIX for Dummies Questions & Answers

Conflicting GID in group and passwd files.

Hi guys, I have a question. In the passwd file, user johndoe has a GID of 100 which is the group named users in the group file. But if you check the group file, johndoe is not listed under GID 100, but under GID 33, which is the group named videos. Under what group does johndoe really belong,... (1 Reply)
Discussion started by: goldenlight1814
1 Replies

10. Shell Programming and Scripting

Script to run #groups command on list in a file

I have to provide a listing of all usernames and group assignments on Linux servers running SLES 12 SP 3. I am trying to automate this via a #for loop. It is not doing as desired and could use a little assistance. Here is the code: #!/bin/bash for uname in 'cat $(hostname)_unlist.txt' do... (8 Replies)
Discussion started by: Kentlee65
8 Replies