我发现cracklib-运行时运行时导致操作系统崩溃每日计划。我必须亲自重启计算机。
为什么会发生这种情况?如果 cron 中没有这种情况,会有什么后果?
这是内容(系统默认):
#!/bin/sh
set -e
if [ -x /usr/sbin/update-cracklib -a -r /etc/cracklib/cracklib.conf ]
then
status="$(/usr/sbin/update-cracklib)"
if [ -n "${status}" ]
then
/usr/bin/logger -p cron.info -t cracklib "updated dictionary (read/written words: ${status})."
else
/usr/bin/logger -p cron.info -t cracklib "no dictionary update necessary."
fi
fi
exit 0
/etc/crackblib.conf的内容:
# database (do not modify):
readonly cracklib_dictpath="/var/cache/cracklib/cracklib_dict"
# database sources:
cracklib_dictpath_src=""
if [ -r "/usr/share/dict/cracklib" ]
then
cracklib_dictpath_src="${cracklib_dictpath_src} /usr/share/dict/cracklib"
fi
if [ -r "/usr/local/share/dict/cracklib" ]
then
cracklib_dictpath_src="${cracklib_dictpath_src} /usr/local/share/dict/cracklib"
fi
for i in /usr/share/dict /usr/dict /usr/local/share/dict /usr/local/dict
do
if [ -d $i ]
then
for file in $(find $i -type f -print | LC_ALL=C sort)
do
if $(file -z -b ${file} | grep -q "text")
then
cracklib_dictpath_src="${cracklib_dictpath_src} ${file}"
fi
done
fi
done