Deleted Added
full compact
login_cap.3 (43920) login_cap.3 (48814)
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.\" $Id: login_cap.3,v 1.9 1998/06/06 05:50:42 jkoshy Exp $
20.\" $Id: login_cap.3,v 1.10 1999/02/12 02:12:06 alex Exp $
21.\"
22.Dd December 27, 1996
23.Os FreeBSD
24.Dt LOGIN_CAP 3
25.Sh NAME
26.Nm login_getclassbyname ,
27.Nm login_close ,
28.Nm login_getclass ,

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

142If the referenced user has no login class specified in
143.Pa /etc/master.passwd ,
144the class name is NULL or an empty string, or if the class
145specified does not exist in the database, each of these
146functions will search for a record with an id of "default",
147with that name returned in the
148.Ar lc_class
149field.
21.\"
22.Dd December 27, 1996
23.Os FreeBSD
24.Dt LOGIN_CAP 3
25.Sh NAME
26.Nm login_getclassbyname ,
27.Nm login_close ,
28.Nm login_getclass ,

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

142If the referenced user has no login class specified in
143.Pa /etc/master.passwd ,
144the class name is NULL or an empty string, or if the class
145specified does not exist in the database, each of these
146functions will search for a record with an id of "default",
147with that name returned in the
148.Ar lc_class
149field.
150In addition, if the referenced user has a UID of 0 (normally,
151"root", although the user name is not considered) then
152.Fn login_getpwclass
153will search for a record with an id of "root" before it searches
154for the record with the id of "default".
150.Pp
151The
152.Ar lc_cap
153field is used internally by the library to contain the
154expanded login capabilities record.
155Programs with unusual requirements may wish to use this
156with the lower-level
157.Fn getcap

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

226includes the user's overriding
227.Pa .login_conf
228that exists in the user's home directory,
229.Fn login_getpwclass,
230and
231.Fn login_getclass
232restricts loookup only to the system login class database in
233.Pa /etc/login.conf .
155.Pp
156The
157.Ar lc_cap
158field is used internally by the library to contain the
159expanded login capabilities record.
160Programs with unusual requirements may wish to use this
161with the lower-level
162.Fn getcap

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

231includes the user's overriding
232.Pa .login_conf
233that exists in the user's home directory,
234.Fn login_getpwclass,
235and
236.Fn login_getclass
237restricts loookup only to the system login class database in
238.Pa /etc/login.conf .
239As explained earlier,
234.Fn login_getpwclass
235only differs from
236.Fn login_getclass
237in that it allows the default class for user 'root' as "root"
238if none has been specified in the password database.
239Otherwise, if the passwd pointer is NULL, or the user record
240has no login class, then the system "default" entry is retrieved.
241.Pp

--- 151 unchanged lines hidden ---
240.Fn login_getpwclass
241only differs from
242.Fn login_getclass
243in that it allows the default class for user 'root' as "root"
244if none has been specified in the password database.
245Otherwise, if the passwd pointer is NULL, or the user record
246has no login class, then the system "default" entry is retrieved.
247.Pp

--- 151 unchanged lines hidden ---