git: installer: Allow special characters in passwords
Aaron LI
aly at crater.dragonflybsd.org
Mon May 11 07:39:44 PDT 2020
commit df29799be511167585aaaa3250904e87e4b54c4c
Author: Aaron LI <aly at aaronly.me>
Date: Sun May 10 10:53:20 2020 +0800
installer: Allow special characters in passwords
Store the password in an environment variable and pass it to the pw(8)
command. This way of passing passwords allows special characters in the
password. Actually, adduser(8) uses the same method to deal with the
password. So this closes the old bug #3027.
In addition, this prevents the plaintext password from appearing on the
command line or in the installation log file. Although the installer
will print every executed command to the install.log (located at
'/var/log/install.log' with mode 0600 though), the root password setting
and new user creation steps belong to the 'configuration' stage rather
than the 'installation', so currently the plaintext passwords won't go
to the install.log.
Credit to pikrzyszt (Krzysztof Piecuch) for submitting the initial patch
in bug #3027.
Summary of changes:
usr.sbin/installer/dfuibe_installer/fn_configure.c | 38 +++++++++++-----------
1 file changed, 19 insertions(+), 19 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/df29799be511167585aaaa3250904e87e4b54c4c
--
DragonFly BSD source repository
More information about the Commits
mailing list