X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/8c8a5b54e79564c14fc7a2823a21a8f048449bcf..af359dea2e5ab3e937b62107ecd6a51d78189ed7:/usr/src/usr.sbin/pwd_mkdb/pwd_mkdb.8 diff --git a/usr/src/usr.sbin/pwd_mkdb/pwd_mkdb.8 b/usr/src/usr.sbin/pwd_mkdb/pwd_mkdb.8 index 8b966f0cb2..88e0e72a7a 100644 --- a/usr/src/usr.sbin/pwd_mkdb/pwd_mkdb.8 +++ b/usr/src/usr.sbin/pwd_mkdb/pwd_mkdb.8 @@ -1,11 +1,37 @@ .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" -.\" %sccs.include.redist.man% +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. .\" -.\" @(#)pwd_mkdb.8 5.1 (Berkeley) %G% +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. .\" -.TH PWD_MKDB 8 " +.\" @(#)pwd_mkdb.8 5.3 (Berkeley) 6/29/91 +.\" +.TH PWD_MKDB 8 "June 29, 1991 .UC 7 .SH NAME pwd_mkdb \- generate the password databases @@ -18,8 +44,8 @@ pwd_mkdb [ \-p ] file creates .IR db (3) style secure and insecure databases for the specified file. -These databases are then installed into ``/var/db/spwd.db'' and -``/var/db/pwd.db'' respectively. +These databases are then installed into ``/etc/spwd.db'' and +``/etc/pwd.db'' respectively. The file is installed into ``/etc/master.passwd''. The file must be in the correct format (see .IR passwd (5)). @@ -31,17 +57,6 @@ The options are as follows: \-p Create a Version 7 style password file and install it into ``/etc/password''. .PP -The databases actually contain three copies of the original data. -Each password file entry is converted into a rough approximation of a -``struct passwd'', with the strings placed inline. -This object is then stored as the data for three separate keys. -The first key is the pw_name field prepended by the _PW_KEYBYNAME character. -The second key is the pw_uid field prepended by the _PW_KEYBYUID character. -The third key is the line number in the original file prepended by the -_PW_KEYBYNUM character. -(The special characters are prepended to ensure that the keys do not -collide.) -.PP The two databases differ in that the secure version contains the user's encrypted password and the insecure version has an asterisk (``*'') .PP