Import NetBSD's passwd.conf

Without this file, the NetBSD userland will fall back by default to the
old, insecure classic UNIX password hashing algorithm.

This is a big security issue. Please check docs/UPDATING for details.
This commit is contained in:
Jean-Baptiste Boric 2017-01-22 16:18:49 +01:00
parent eecf6d233d
commit 79e7246e13
4 changed files with 19 additions and 1 deletions

View File

@ -116,6 +116,7 @@
./etc/openssl/misc minix-base crypto ./etc/openssl/misc minix-base crypto
./etc/openssl/private minix-base crypto ./etc/openssl/private minix-base crypto
./etc/passwd minix-base ./etc/passwd minix-base
./etc/passwd.conf minix-base
./etc/profile minix-base ./etc/profile minix-base
./etc/protocols minix-base ./etc/protocols minix-base
./etc/pwd.db minix-base ./etc/pwd.db minix-base

View File

@ -1,3 +1,11 @@
20170122:
MINIX 3 did not import NetBSD's passwd.conf file, which makes the
userland fall back by default to the old, broken UNIX password hashing
algorithm. Among other problems, it truncates passwords to the first
eight characters.
Please install /etc/passwd.conf and reset your passwords with passwd.
20160702: 20160702:
Some tools are required to generate the locale resources which are Some tools are required to generate the locale resources which are
embedded into libintl, which is why you need to run the following: embedded into libintl, which is why you need to run the following:

View File

@ -96,7 +96,7 @@ UTMPGRP= utmp
.if defined(__MINIX) .if defined(__MINIX)
BIN1+= boot.cfg.default \ BIN1+= boot.cfg.default \
man.conf \ man.conf \
protocols rc rc.cd rc.subr \ passwd.conf protocols rc rc.cd rc.subr \
rc.daemons.dist rs.inet rs.single \ rc.daemons.dist rs.inet rs.single \
services shells syslog.conf \ services shells syslog.conf \
termcap utmp gettytab rc.shutdown termcap utmp gettytab rc.shutdown

9
etc/passwd.conf Normal file
View File

@ -0,0 +1,9 @@
# $NetBSD: passwd.conf,v 1.3 2010/12/03 21:40:04 jmmv Exp $
#
# passwd.conf(5) -
# password configuration file
#
default:
localcipher = sha1
ypcipher = old