Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / usr.bin / login / login.access.5
1 .\"
2 .\" $FreeBSD: src/usr.bin/login/login.access.5,v 1.9.2.3 2003/02/25 20:45:08 trhodes Exp $
3 .\" $DragonFly: src/usr.bin/login/login.access.5,v 1.2 2003/06/17 04:29:28 dillon Exp $
4 .\"
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.  The
22 permissions field of that table entry determines whether the login will
23 be accepted or refused.
24 .Pp
25 Each line of the login access control table has three fields separated by a
26 ":" character:    permission : users : origins
27 .Pp
28 The first field should be a "+" (access granted) or "-" (access denied)
29 character.
30 The second field should be a list of one or more login names,
31 group names, or ALL (always matches).  The third field should be a list
32 of one or more tty names (for non-networked logins), host names, domain
33 names (begin with "."), host addresses, internet network numbers (end
34 with "."), ALL (always matches) or LOCAL (matches any string that does
35 not contain a "." character). If you run NIS you can use @netgroupname
36 in host or user patterns.
37 .Pp
38 The EXCEPT operator makes it possible to write very compact rules.
39 .Pp
40 The group file is searched only when a name does not match that of the
41 logged-in user.
42 Only groups are matched in which users are explicitly
43 listed: the program does not look at a user's primary group id value.
44 .Sh FILES
45 .Bl -tag -width /etc/login.access -compact
46 .It Pa /etc/login.access
47 The
48 .Nm
49 file resides in
50 .Pa /etc .
51 .El
52 .Sh SEE ALSO
53 .Xr login 1 ,
54 .Xr pam 8
55 .Sh AUTHORS
56 .An Guido van Rooij