2 .\" $FreeBSD: src/lib/libpam/modules/pam_login_access/login.access.5,v 1.17 2006/09/13 18:34:32 joel Exp $
9 .Nd login access control table
13 file specifies (user, host) combinations and/or (user, tty)
14 combinations for which a login will be either accepted or refused.
16 When someone logs in, the
18 is scanned for the first entry that
19 matches the (user, host) combination, or, in case of non-networked
20 logins, the first entry that matches the (user, tty) combination.
22 permissions field of that table entry determines whether the login will
23 be accepted or refused.
25 Each line of the login access control table has three fields separated by a
28 .Ar permission : Ns Ar users : Ns Ar origins
30 The first field should be a "+" (access granted) or "-" (access denied)
32 The second field should be a list of one or more login names,
33 group names, or ALL (always matches).
34 The third field should be a list
35 of one or more tty names (for non-networked logins), host names, domain
36 names (begin with "."), host addresses, internet network numbers (end
37 with "."), ALL (always matches) or LOCAL (matches any string that does
38 not contain a "." character).
39 If you run NIS you can use @netgroupname
40 in host or user patterns.
42 The EXCEPT operator makes it possible to write very compact rules.
44 The group file is searched only when a name does not match that of the
46 Only groups are matched in which users are explicitly
47 listed: the program does not look at a user's primary group id value.
49 .Bl -tag -width /etc/login.access -compact
50 .It Pa /etc/login.access
51 login access control table
55 .Xr pam_login_access 8