1GROUP.CONF(5) Linux-PAM Manual GROUP.CONF(5)
2
3
4
6 group.conf - configuration file for the pam_group module
7
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
30 netgroup of users to whom this rule applies.
31
32 For these items the simple wildcard '*' may be used only once. With
33 netgroups no wildcards or logic operators are allowed.
34
35 The times field is used to indicate "when" these groups are to be given
36 to the user. The format here is a logic list of day/time-range entries.
37 The days are specified by a sequence of two character entries, MoTuSa
38 for example is Monday Tuesday and Saturday. Note that repeated days are
39 unset MoMo = no day, and MoWk = all weekdays bar Monday. The two
40 character combinations accepted are Mo Tu We Th Fr Sa Su Wk Wd Al, the
41 last two being week-end days and all 7 days of the week respectively.
42 As a final example, AlFr means all days except Friday.
43
44 Each day/time-range can be prefixed with a '!' to indicate "anything
45 but". The time-range part is two 24-hour times HHMM, separated by a
46 hyphen, indicating the start and finish time (if the finish time is
47 smaller than the start time it is deemed to apply on the following
48 day).
49
50 The groups field is a comma or space separated list of groups that the
51 user inherits membership of. These groups are added if the previous
52 fields are satisfied by the user's request.
53
54 For a rule to be active, ALL of service+ttys+users must be satisfied by
55 the applying process.
56
58 These are some example lines which might be specified in
59 /etc/security/group.conf.
60
61 Running 'xsh' on tty* (any ttyXXX device), the user 'us' is given
62 access to the floppy (through membership of the floppy group)
63
64 xsh;tty*&!ttyp*;us;Al0000-2400;floppy
65
66 Running 'xsh' on tty* (any ttyXXX device), the user 'sword' is given
67 access to games (through membership of the floppy group) after work
68 hours.
69
70 xsh; tty* ;sword;!Wk0900-1800;games, sound
71 xsh; tty* ;*;Al0900-1800;floppy
72
73
75 pam_group(8), pam.d(5), pam(8)
76
78 pam_group was written by Andrew G. Morgan <morgan@kernel.org>.
79
80
81
82Linux-PAM Manual 06/21/2006 GROUP.CONF(5)