Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

group(5) [linux man page]

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

NAME
group - user group file DESCRIPTION
/etc/group is a text file which defines the groups on the system. There is one entry per line, with the following format: group_name:password:GID:user_list The field descriptions are: group_name the name of the group. password the (encrypted) group password. If this field is empty, no password is needed. GID the numerical 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
login(1), newgrp(1), getgrent(3), getgrnam(3), passwd(5) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2009-10-17 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
login(1), newgrp(1), getgrent(3), getgrnam(3), passwd(5) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2010-10-21 GROUP(5)
Man Page

14 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. Filesystems, Disks and Memory

changing group ID

My current GID are all < 100, however I am having issues now with this. Does anyone know of a way to change all GID's to perhaps add 100, IE so GID now = 23 will = 123. I am running an NIS network so changing the table is easy , however finding all the files on all my filesystems and modifying... (4 Replies)
Discussion started by: frankkahle
4 Replies

5. Shell Programming and Scripting

Changing userID and Changing group and GID

Hello, I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job. linux1 linux2 linux3 linux4 linux5 ...... . . . . . 1.) How can i enter "password" in script rather asking me? I was trying this... ssh... (2 Replies)
Discussion started by: deal732
2 Replies

6. UNIX for Dummies Questions & Answers

file unchanged error

Hi, I am trying to compress a file using the following command: compress user_list But i am getting the following error. user_list: -- file unchanged Please note that file is not empty (1 Reply)
Discussion started by: funnie
1 Replies

7. Shell Programming and Scripting

Get the total of a field in all the lines of a group

Hi I have a Fixed format data file where I need to to get the total of the field at certain position in a file for a group of lines. In this data file I need the total of all the field ats position 30:39 for each line starting with 6 and for each group startign with 5. Which means for... (27 Replies)
Discussion started by: appsguy616
27 Replies

8. 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

9. 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

10. Programming

Shared Memory Between C Programs

I'm involved in a project with multiple teams which are developing C code for a Linux machine and we would like to have our program pass data to one of the other group's programs. The immediate idea is to have shared memory between the programs which would simply consist of variables whose size and... (2 Replies)
Discussion started by: cmcmanus3
2 Replies

11. 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

12. 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

13. UNIX for Advanced & Expert Users

Has anyone ever compiled Linux soley using the intel compilers

A while ago I heard that a group of people did this, but the internet changes, and I can no longer find the relevant sources or hearsay. Is this even possible? (2 Replies)
Discussion started by: surrealdeal
2 Replies

14. 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