Deleted Added
full compact
login_ok.3 (112541) login_ok.3 (131504)
1.\" Copyright (c) 1995 David Nugent <davidn@blaze.net.au>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, is permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice immediately at the beginning of the file, without modification,
9.\" this list of conditions, and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\" notice, this list of conditions and the following disclaimer in the
12.\" documentation and/or other materials provided with the distribution.
13.\" 3. This work was done expressly for inclusion into FreeBSD. Other use
14.\" is permitted provided this notation is included.
15.\" 4. Absolutely no warranty of function or purpose is made by the author
16.\" David Nugent.
17.\" 5. Modifications may be freely made to this file providing the above
18.\" conditions are met.
19.\"
1.\" Copyright (c) 1995 David Nugent <davidn@blaze.net.au>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, is permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice immediately at the beginning of the file, without modification,
9.\" this list of conditions, and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\" notice, this list of conditions and the following disclaimer in the
12.\" documentation and/or other materials provided with the distribution.
13.\" 3. This work was done expressly for inclusion into FreeBSD. Other use
14.\" is permitted provided this notation is included.
15.\" 4. Absolutely no warranty of function or purpose is made by the author
16.\" David Nugent.
17.\" 5. Modifications may be freely made to this file providing the above
18.\" conditions are met.
19.\"
20.\" $FreeBSD: head/lib/libutil/login_ok.3 112541 2003-03-24 16:02:05Z charnier $
20.\" $FreeBSD: head/lib/libutil/login_ok.3 131504 2004-07-02 23:52:20Z ru $
21.\"
22.Dd January 2, 1997
23.Os
24.Dt LOGIN_OK 3
25.Sh NAME
26.Nm auth_ttyok ,
27.Nm auth_hostok ,
28.Nm auth_timeok

--- 30 unchanged lines hidden (view full) ---

59the give login class) logins via any tty device are allowed unless
60the
61.Em ttys.deny
62list exists and is non-empty, and the device or its
63tty group (see
64.Xr ttys 5 )
65is not in the list.
66Access to ttys may be allowed or restricted specifically by tty device
21.\"
22.Dd January 2, 1997
23.Os
24.Dt LOGIN_OK 3
25.Sh NAME
26.Nm auth_ttyok ,
27.Nm auth_hostok ,
28.Nm auth_timeok

--- 30 unchanged lines hidden (view full) ---

59the give login class) logins via any tty device are allowed unless
60the
61.Em ttys.deny
62list exists and is non-empty, and the device or its
63tty group (see
64.Xr ttys 5 )
65is not in the list.
66Access to ttys may be allowed or restricted specifically by tty device
67name, a device name which includes a wildcard (e.g. ttyD* or cuaD*),
67name, a device name which includes a wildcard (e.g.\& ttyD* or cuaD*),
68or may name a ttygroup, when group=<name> tags have been assigned in
69.Pa /etc/ttys .
70Matching of ttys and ttygroups is case sensitive.
71Passing a
72.Dv NULL
73or empty string as the
74.Ar tty
75parameter causes the function to return a non-zero value.

--- 9 unchanged lines hidden (view full) ---

85login class capabilities.
86As with ttys and their groups, wildcards and character classes may be
87used in the host allow and deny capability records.
88The
89.Xr fnmatch 3
90function is used for matching, and the matching on hostnames is case
91insensitive.
92Note that this function expects that the hostname is fully expanded
68or may name a ttygroup, when group=<name> tags have been assigned in
69.Pa /etc/ttys .
70Matching of ttys and ttygroups is case sensitive.
71Passing a
72.Dv NULL
73or empty string as the
74.Ar tty
75parameter causes the function to return a non-zero value.

--- 9 unchanged lines hidden (view full) ---

85login class capabilities.
86As with ttys and their groups, wildcards and character classes may be
87used in the host allow and deny capability records.
88The
89.Xr fnmatch 3
90function is used for matching, and the matching on hostnames is case
91insensitive.
92Note that this function expects that the hostname is fully expanded
93(i.e. the local domain name added if necessary) and the IP address
93(i.e., the local domain name added if necessary) and the IP address
94is in its canonical form.
95No hostname or address lookups are attempted.
96.Pp
97It is possible to call this function with either the hostname or
98the IP address missing (i.e.\&
99.Dv NULL )
100and matching will be performed
101only on the basis of the parameter given.

--- 41 unchanged lines hidden ---
94is in its canonical form.
95No hostname or address lookups are attempted.
96.Pp
97It is possible to call this function with either the hostname or
98the IP address missing (i.e.\&
99.Dv NULL )
100and matching will be performed
101only on the basis of the parameter given.

--- 41 unchanged lines hidden ---