mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-02-19 05:44:50 +01:00
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:
parent
d0946d6c3f
commit
dcc27afc06
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue