diff options
author | nik <nik@FreeBSD.org> | 1999-07-14 22:36:10 +0000 |
---|---|---|
committer | nik <nik@FreeBSD.org> | 1999-07-14 22:36:10 +0000 |
commit | 43a5345db522e613f621a9c01c5acbfe612e91aa (patch) | |
tree | c2a7dc2e210d3154502067d04625b6f073443d69 | |
parent | 82c03039352997a53fffd345ac2e99e1c4f09e21 (diff) | |
download | FreeBSD-src-43a5345db522e613f621a9c01c5acbfe612e91aa.zip FreeBSD-src-43a5345db522e613f621a9c01c5acbfe612e91aa.tar.gz |
Be a little clearer about login_getpwclass(3), and its penchant for
looking up a record called "root".
PR: docs/12377
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
-rw-r--r-- | etc/login.conf | 4 | ||||
-rw-r--r-- | lib/libutil/login_cap.3 | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/etc/login.conf b/etc/login.conf index 16ecd47..af09156 100644 --- a/etc/login.conf +++ b/etc/login.conf @@ -9,7 +9,7 @@ # This file controls resource limits, accounting limits and # default user environment settings. # -# $Id: login.conf,v 1.30 1999/04/30 18:19:29 hoek Exp $ +# $Id: login.conf,v 1.31 1999/05/28 11:07:16 jkh Exp $ # # Default settings effectively disable resource limits, see the @@ -60,6 +60,8 @@ dialer:\ # # Root can always login # +# N.B. login_getpwclass(3) will use this entry for the root account, +# in preference to 'default'. root:\ :ignorenologin:\ :tc=default: diff --git a/lib/libutil/login_cap.3 b/lib/libutil/login_cap.3 index 3487688..31b0928 100644 --- a/lib/libutil/login_cap.3 +++ b/lib/libutil/login_cap.3 @@ -17,7 +17,7 @@ .\" 5. Modifications may be freely made to this file providing the above .\" conditions are met. .\" -.\" $Id: login_cap.3,v 1.9 1998/06/06 05:50:42 jkoshy Exp $ +.\" $Id: login_cap.3,v 1.10 1999/02/12 02:12:06 alex Exp $ .\" .Dd December 27, 1996 .Os FreeBSD @@ -147,6 +147,11 @@ functions will search for a record with an id of "default", with that name returned in the .Ar lc_class field. +In addition, if the referenced user has a UID of 0 (normally, +"root", although the user name is not considered) then +.Fn login_getpwclass +will search for a record with an id of "root" before it searches +for the record with the id of "default". .Pp The .Ar lc_cap @@ -231,6 +236,7 @@ and .Fn login_getclass restricts loookup only to the system login class database in .Pa /etc/login.conf . +As explained earlier, .Fn login_getpwclass only differs from .Fn login_getclass |