Subject: Re: misc/14740: [PATCH] Missing example passwd.conf file.
To: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 11/26/2001 15:13:58
[ On Monday, November 26, 2001 at 09:15:00 (-0800), sketch@rd.bbc.co.uk wrote: ]
> Subject: misc/14740: [PATCH] Missing example passwd.conf file.
>
> NetBSD 1.6 introduced the passwd.conf file for getting rid of
> insecure DES passwords and using nice MD5 ones instead via a nice
> simple configuration.  Unfortunately there is no example file
> available and so people have no idea such an implementation exists,
> unless they are cunning enough to find passwd.conf(5)

I've been using this one, myself....

#ident "@(#)$NetBSD$"
#
#       /etc/passwd.conf - password encryption configuration file
#
# This file may contain user and group specific stanzas.  If no user
# or group stanza to a specific option is available, the "default"
# stanza is used.
#
# To differentiate between user and group stanzas, groups are prefixed
# with a single colon (`:').
#
# Some fields and their possible values that can appear in this file are:
#
#    localcipher  The cipher to use for local passwords.  Possible values are:
#                 ``old'', ``newsalt,<rounds>'', and ``md5''.  For ``newsalt''
#                 the value of rounds is a 24-bit integer with a minimum of
#                 7250 rounds.
#
#    ypcipher     The cipher to use for YP passwords.  The possible values are
#                 the same as for localcipher.
#
# see passwd.conf(5) and pw_getconf(3)
#
default:
        localcipher = old
        ypcipher = old

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>     <woods@robohack.ca>
Planix, Inc. <woods@planix.com>;   Secrets of the Weird <woods@weird.com>