master.passwd.5 and various passwd.5 changes (diff)

Jeremy C. Reed reed at
Wed Jan 11 22:41:05 PST 2006

This adds master.passwd.5 file (same file as passwd.5).

And this changes FreeBSD (as appropriate to DragonFly).

Removes old documentation about older (FreeBSD) versions of YP.
(Maybe I should keep part of this, and reword?)

May I commit any of this?

Index: share/man/man5/Makefile
RCS file: /cvs/src/share/man/man5/Makefile,v
retrieving revision 1.7
diff -b -u -r1.7 Makefile
--- share/man/man5/Makefile	5 Aug 2005 10:13:43 -0000	1.7
+++ share/man/man5/Makefile	5 Oct 2005 23:07:10 -0000
@@ -20,5 +20,6 @@
 MLINKS+=hosts.equiv.5 rhosts.5
 MLINKS+=resolver.5 resolv.conf.5
 MLINKS+=utmp.5 lastlog.5 utmp.5 wtmp.5
+MLINKS+=passwd.5 master.passwd.5
 .include <>
Index: share/man/man5/passwd.5
RCS file: /cvs/src/share/man/man5/passwd.5,v
retrieving revision 1.3
diff -b -u -r1.3 passwd.5
--- share/man/man5/passwd.5	11 Mar 2004 12:28:56 -0000	1.3
+++ share/man/man5/passwd.5	5 Oct 2005 23:27:20 -0000
@@ -37,7 +37,8 @@
-.Nm passwd
+.Nm passwd ,
+.Nm master.passwd
 .Nd format of the password file
@@ -197,7 +198,7 @@
 .Ss Enabling access to NIS passwd data
 The system administrator can configure
-.Tn FreeBSD
 to use NIS/YP for
 its password information by adding special records to the
 .Pa /etc/master.passwd
@@ -228,7 +229,7 @@
 will tell the
 .Xr getpwent 3
 routines in
-.Tn FreeBSD Ns 's
+.Dx Ns 's
 standard C library to begin using the NIS passwd maps
 for lookups.
@@ -400,7 +401,7 @@
 it need not be modified again unless new netgroups are created.
 .Ss Shadow passwords through NIS
-.Tn FreeBSD
 uses a shadow password scheme: users' encrypted passwords
 are stored only in
 .Pa /etc/master.passwd
@@ -414,16 +415,16 @@
 NIS does not support a standard means of
 password shadowing, which implies that placing your password data
 into the NIS passwd maps totally defeats the security of
-.Tn FreeBSD Ns 's
+.Dx Ns 's
 password shadowing system.
-.Tn FreeBSD
 provides a few special features to help get around this
 It is possible to implement password shadowing between
-.Tn FreeBSD
 NIS clients and
-.Tn FreeBSD
 NIS servers.
 .Xr getpwent 3
@@ -435,14 +436,15 @@
 .Pa /etc/master.passwd
 If the maps exist,
-.Tn FreeBSD
 will attempt to use them for user
 authentication instead of the standard
 .Pa passwd.byname
 .Pa passwd.byuid
-.Tn FreeBSD Ns 's
 .Xr ypserv 8
 will also check client requests to make sure they originate on a
 privileged port.
@@ -460,7 +462,7 @@
 maps which contain no password information.
 Note that this feature cannot be used in an environment with
-.No non- Ns Tn FreeBSD
+.No non- Ns Os
 Note also that a truly determined user with
 unrestricted access to your network could still compromise the
@@ -470,7 +472,7 @@
 .Tn SunOS
 and other operating systems that use Sun's NIS code,
-.Tn FreeBSD
 allows the user to override
 .Pa all
 of the fields in a user's NIS
@@ -499,7 +501,7 @@
 This often leads to new
-.Tn FreeBSD
 administrators choosing NIS entries for their
 .Pa master.passwd
 files that look like this:
@@ -516,7 +518,7 @@
 .Pa master.passwd
 .Sy FILE!!
 The first tells
-.Tn FreeBSD
 to remap all passwords to
 .Ql \&*
@@ -564,7 +566,7 @@
 instead of simple wildcards, other combinations could be achieved.)
 By contrast,
 does not have a single
 password file: it
@@ -579,7 +581,7 @@
 .Fn getpwuid
 functions in
-.Tn FreeBSD
 are designed to do direct queries to the
 hash database rather than a linear search.
 This approach is faster
@@ -591,7 +593,7 @@
 .Tn SunOS .
-.Tn FreeBSD
 groups all the NIS override entries together
 and constructs a filter out of them.
 Each NIS password entry
@@ -614,7 +616,7 @@
 file, since doing otherwise would lead to unpredictable behavior.
 The end result is that
-.Tn FreeBSD Ns 's
 provides a very close approximation
 .Tn SunOS Ns 's
@@ -639,7 +641,7 @@
 In 99% of all
-.Tn FreeBSD
 configurations, NIS client behavior will be
 indistinguishable from that of
 .Tn SunOS
@@ -648,7 +650,7 @@
 so, users should be aware of these architectural differences.
 .Ss Using groups instead of netgroups for NIS overrides
-.Tn FreeBSD
 offers the capability to do override matching based on
 user groups rather than netgroups.
 If, for example, an NIS entry
@@ -665,57 +667,6 @@
 will try to match users against the normal
 .Ql operator
 group instead.
-.Ss Changes in behavior from older versions of
-There have been several bug fixes and improvements in
-.Dx Ns 's
-NIS/YP handling, some of which have caused changes in behavior.
-While the behavior changes are generally positive, it is important
-that users and system administrators be aware of them:
-.Bl -enum -offset indent
-In versions prior to 2.0.5, reverse lookups (i.e. using
-.Fn getpwuid )
-would not have overrides applied, which is to say that it
-was possible for
-.Fn getpwuid
-to return a login name that
-.Fn getpwnam
-would not recognize.
-This has been fixed: overrides specified
-.Pa /etc/master.passwd
-now apply to all
-.Xr getpwent 3
-Prior to
-.Fx 2.0.5 ,
-netgroup overrides did not work at
-all, largely because
-.Tn FreeBSD
-did not have support for reading
-netgroups through NIS.
-Again, this has been fixed, and
-netgroups can be specified just as in
-.Tn SunOS
-and similar NIS-capable
-now has NIS server capabilities and supports the use
-.Pa master.passwd
-NIS maps in addition to the standard Sixth Edition format
-.Pa passwd
-This means that you can specify change, expiration and class
-information through NIS, provided you use a
-system as
-the NIS server.
 .Bl -tag -width /etc/master.passwd -compact
@@ -796,8 +747,8 @@
 The YP/NIS functionality is modeled after
 .Tn SunOS
 and first appeared in
-.Fx 1.1
-The override capability is new in
+.Fx 1.1 .
+The override capability was new in
 .Fx 2.0 .
 The override capability was updated to properly support netgroups

More information about the Submit mailing list