Annotation of coherent/a/usr/man/COHERENT/group, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: group                      File Format                      group
                      4: 
                      5: 
                      6: 
                      7: 
                      8: Group file format
                      9: 
                     10: 
                     11: The  group file  /etc/group describes the  user groups  that have
                     12: been defined on your  COHERENT system.  This allows users to con-
                     13: trol  the access  that  members of  their group  have to  certain
                     14: files.   /etc/group contains  the  information to  map any  ASCII
                     15: group name  to the corresponding numerical  group identifier, and
                     16: vice versa.  It also contains, in ASCII, the names of the members
                     17: of each  group.  This information  is used by,  among others, the
                     18: command newgrp.
                     19: 
                     20: Each  group has  an entry  in  the file  /etc/group one  line per
                     21: entry.  Each line  consists of four colon-separated ASCII fields,
                     22: as follows:
                     23: 
                     24: 
                     25:      _g_r_o_u_p__n_a_m_e : _p_a_s_s_w_o_r_d : _g_r_o_u_p__n_u_m_b_e_r : _m_e_m_b_e_r[,_m_e_m_b_e_r...]
                     26: 
                     27: 
                     28: Passwords are  encrypted with crypt, so the  group file is gener-
                     29: ally readable.
                     30: 
                     31: The  COHERENT  system  has  five  system  calls  that  manipulate
                     32: /etc/group, as follows:
                     33: 
                     34: eennddggrreenntt
                     35:      Close /etc/group.
                     36: 
                     37: ggeettggrreenntt
                     38:      Return the next entry from /etc/group.
                     39: 
                     40: ggeettggrrnnaamm
                     41:      Return the first entry with a given group name.
                     42: 
                     43: ggeettggrrggiidd
                     44:      Return the first entry with a given group identifier.
                     45: 
                     46: sseettggrreenntt
                     47:      Rewind /etc/group, so that searches can begin again from the
                     48:      beginning of the file.
                     49: 
                     50: The calls  getgrent, getgrid, and getgrnam  each return a pointer
                     51: to structure group, which is  defined in the header file grp.h as
                     52: follows:
                     53: 
                     54: 
                     55: struct group {
                     56:         char    *gr_name;       /* Group name */
                     57:         char    *gr_passwd;     /* Group password */
                     58:         int     gr_gid;         /* Numeric group id */
                     59:         char    **gr_mem;       /* Group members */
                     60: };
                     61: 
                     62: 
                     63: 
                     64: COHERENT Lexicon                                           Page 1
                     65: 
                     66: 
                     67: 
                     68: 
                     69: group                      File Format                      group
                     70: 
                     71: 
                     72: 
                     73: 
                     74: ***** Files *****
                     75: 
                     76: /etc/group
                     77: 
                     78: ***** See Also *****
                     79: 
                     80: chgrp(),   crypt(),   endgrent(),   file   formats,   getgrent(),
                     81: getgrgid(), getgrnam(), grp.h, newgrp, passwd, setgrend()
                     82: 
                     83: ***** Notes *****
                     84: 
                     85: At present  the group password  field cannot be  set directly (no
                     86: command similar to passwd exists for groups).  One alternative is
                     87: to set the  password in the /etc/passwd file for  a user with the
                     88: passwd command,  and then transcribe the  password into the group
                     89: file manually.
                     90: 
                     91: 
                     92: 
                     93: 
                     94: 
                     95: 
                     96: 
                     97: 
                     98: 
                     99: 
                    100: 
                    101: 
                    102: 
                    103: 
                    104: 
                    105: 
                    106: 
                    107: 
                    108: 
                    109: 
                    110: 
                    111: 
                    112: 
                    113: 
                    114: 
                    115: 
                    116: 
                    117: 
                    118: 
                    119: 
                    120: 
                    121: 
                    122: 
                    123: 
                    124: 
                    125: 
                    126: 
                    127: 
                    128: 
                    129: 
                    130: COHERENT Lexicon                                           Page 2
                    131: 
                    132: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.