add mkpasswd: hash a password for use in /etc/shadow or htpasswd

mkpasswd is finally available packaged on Arch, so add it to allow
manually replacing a password in /etc/shadow, for when chroots or
pam don't work as wanted. Also supports advanced hash algos like
yescrypt that can't be set via the pam stack yet.

Because the source for mkpasswd is part of the whois package, it
is currently packaged as part of whois. But it might get it's own
package in the future, so add a check for /usr/bin/mkpasswd during
build time.
This commit is contained in:
Gerd v. Egidy 2022-09-15 20:58:33 +02:00
parent d0946d6c3f
commit dcc27afc06
3 changed files with 13 additions and 1 deletions

View file

@ -12,6 +12,7 @@ https://gitlab.com/systemrescue/systemrescue-sources/-/issues/278
* Don't waste ram when using the archiso_http_srv option (#56)
* mountall: run udevadm settle to mount newly opened cryptodisks, improve messages
* Add rclone option to the "sysconfig" scope of YAML config file, it writes a rclone.conf file
* Added packages: whois (mkpasswd)
------------------------------------------------------------------------------
9.04 (2022-08-07):

View file

@ -21,9 +21,19 @@ do
done
# check for missing programs
# mkpasswd might be packaged separately from whois in the future
for curfile in /usr/bin/mkpasswd ; \
do
if ! [[ -x "${curfile}" ]]; then
echo "ERROR: Program ${curfile} is missing"
errcnt=$((errcnt + 1))
fi
done
if [ ${errcnt} -eq 0 ]
then
echo "SUCCESS: Have not found any missing library"
echo "SUCCESS: Have not found any missing library or program"
exit 0
else
echo "FAILURE: Have found ${errcnt} issues"

View file

@ -246,6 +246,7 @@ vpnc
wget
whdd
which
whois
wimlib
wipe
wireguard-tools