]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libpam/modules/pam_login_access/login.access.5
This commit was generated by cvs2svn to compensate for changes in r156251,
[FreeBSD/FreeBSD.git] / lib / libpam / modules / pam_login_access / login.access.5
1 .\"
2 .\" $FreeBSD$
3 .\"
4 .\" this is comment
5 .Dd April 30, 1994
6 .Dt LOGIN.ACCESS 5
7 .Os
8 .Sh NAME
9 .Nm login.access
10 .Nd login access control table
11 .Sh DESCRIPTION
12 The
13 .Nm
14 file specifies (user, host) combinations and/or (user, tty)
15 combinations for which a login will be either accepted or refused.
16 .Pp
17 When someone logs in, the
18 .Nm
19 is scanned for the first entry that
20 matches the (user, host) combination, or, in case of non-networked
21 logins, the first entry that matches the (user, tty) combination.
22 The
23 permissions field of that table entry determines whether the login will
24 be accepted or refused.
25 .Pp
26 Each line of the login access control table has three fields separated by a
27 .Ql \&:
28 character:
29 .Ar permission : Ns Ar users : Ns Ar origins
30 .Pp
31 The first field should be a "+" (access granted) or "-" (access denied)
32 character.
33 The second field should be a list of one or more login names,
34 group names, or ALL (always matches).
35 The third field should be a list
36 of one or more tty names (for non-networked logins), host names, domain
37 names (begin with "."), host addresses, internet network numbers (end
38 with "."), ALL (always matches) or LOCAL (matches any string that does
39 not contain a "." character).
40 If you run NIS you can use @netgroupname
41 in host or user patterns.
42 .Pp
43 The EXCEPT operator makes it possible to write very compact rules.
44 .Pp
45 The group file is searched only when a name does not match that of the
46 logged-in user.
47 Only groups are matched in which users are explicitly
48 listed: the program does not look at a user's primary group id value.
49 .Sh FILES
50 .Bl -tag -width /etc/login.access -compact
51 .It Pa /etc/login.access
52 The
53 .Nm
54 file resides in
55 .Pa /etc .
56 .El
57 .Sh SEE ALSO
58 .Xr login 1 ,
59 .Xr pam 8
60 .Sh AUTHORS
61 .An Guido van Rooij