1GROUP.CONF(5)                  Linux-PAM Manual                  GROUP.CONF(5)
2
3
4

NAME

6       group.conf - configuration file for the pam_group module
7

DESCRIPTION

9       The pam_group PAM module does not authenticate the user, but instead it
10       grants group memberships (in the credential setting phase of the
11       authentication module) to the user. Such memberships are based on the
12       service they are applying for.
13
14       For this module to function correctly there must be a correctly
15       formatted /etc/security/group.conf file present. White spaces are
16       ignored and lines maybe extended with '\' (escaped newlines). Text
17       following a '#' is ignored to the end of the line.
18
19       The syntax of the lines is as follows:
20
21       services;ttys;users;times;groups
22
23       The first field, the services field, is a logic list of PAM service
24       names that the rule applies to.
25
26       The second field, the tty field, is a logic list of terminal names that
27       this rule applies to.
28
29       The third field, the users field, is a logic list of users, or a UNIX
30       group, or a netgroup of users to whom this rule applies. Group names
31       are preceded by a '%' symbol, while netgroup names are preceded by a
32       '@' symbol.
33
34       For these items the simple wildcard '*' may be used only once. With
35       UNIX groups or netgroups no wildcards or logic operators are allowed.
36
37       The times field is used to indicate "when" these groups are to be given
38       to the user. The format here is a logic list of day/time-range entries.
39       The days are specified by a sequence of two character entries, MoTuSa
40       for example is Monday Tuesday and Saturday. Note that repeated days are
41       unset MoMo = no day, and MoWk = all weekdays bar Monday. The two
42       character combinations accepted are Mo Tu We Th Fr Sa Su Wk Wd Al, the
43       last two being week-end days and all 7 days of the week respectively.
44       As a final example, AlFr means all days except Friday.
45
46       Each day/time-range can be prefixed with a '!' to indicate "anything
47       but". The time-range part is two 24-hour times HHMM, separated by a
48       hyphen, indicating the start and finish time (if the finish time is
49       smaller than the start time it is deemed to apply on the following
50       day).
51
52       The groups field is a comma or space separated list of groups that the
53       user inherits membership of. These groups are added if the previous
54       fields are satisfied by the user's request.
55
56       For a rule to be active, ALL of service+ttys+users must be satisfied by
57       the applying process.
58

EXAMPLES

60       These are some example lines which might be specified in
61       /etc/security/group.conf.
62
63       Running 'xsh' on tty* (any ttyXXX device), the user 'us' is given
64       access to the floppy (through membership of the floppy group)
65
66           xsh;tty*&!ttyp*;us;Al0000-2400;floppy
67
68       Running 'xsh' on tty* (any ttyXXX device), the user 'sword' is given
69       access to games (through membership of the floppy group) after work
70       hours.
71
72           xsh; tty* ;sword;!Wk0900-1800;games, sound
73           xsh; tty* ;*;Al0900-1800;floppy
74
75
76       Any member of the group 'admin' running 'xsh' on tty*, is granted
77       access (at any time) to the group 'plugdev'
78
79           xsh; tty* ;%admin;Al0000-2400;plugdev
80
81

SEE ALSO

83       pam_group(8), pam.d(5), pam(8)
84

AUTHOR

86       pam_group was written by Andrew G. Morgan <morgan@kernel.org>.
87
88
89
90Linux-PAM Manual                  09/19/2013                     GROUP.CONF(5)
Impressum