OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / original / man5 / login.access.5
1 .\"$Id: login.access.5,v 1.3 2001/01/25 10:43:50 kloczek Exp $
2 .\" this is comment
3 .TH LOGIN.ACCESS 5
4 .\" .Dt SKEY.ACCESS 5
5 .\" .Os FreeBSD 1.2
6 .SH NAME
7 login.access \- Login access control table
8 .SH DESCRIPTION
9 The
10 .I login.access
11 file specifies (user, host) combinations and/or (user, tty) 
12 combinations for which a login will be either accepted or refused.
13 .PP
14 When someone logs in, the 
15 .I login.access
16 is scanned for the first entry that
17 matches the (user, host) combination, or, in case of non-networked
18 logins, the first entry that matches the (user, tty) combination.  The
19 permissions field of that table entry determines whether the login will 
20 be accepted or refused.
21 .PP
22 Each line of the login access control table has three fields separated by a
23 ":" character:
24 .sp 1
25 .IR     permission : users : origins
26 .sp 1
27 The first field should be a "\fB+\fR" (access granted) or "\fB-\fR"
28 (access denied) character. The second field should be a list of one or
29 more login names, group names, or
30 .B ALL
31 (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 "\fB.\fR"), host addresses, internet network numbers
34 (end with "\fB.\fR"),
35 .B ALL
36 (always matches) or
37 .B LOCAL
38 (matches any string that does not contain a "\fB.\fR" character).
39 If you run NIS you can use @netgroupname in host or user patterns.
40 .PP
41 The
42 .B EXCEPT
43 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. Only groups are matched in which users are explicitly
47 listed: the program does not look at a user's primary group id value.
48 .SH FILES
49 /etc/login.access
50 .SH SEE ALSO
51 .BR login (1)
52 .SH AUTHOR
53 Guido van Rooij