mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-30 17:24:32 +02:00
Set enable status of pwhistory module at beginning of test
This commit is contained in:
parent
e2b8b9b18a
commit
7afc82a8aa
@ -155,6 +155,7 @@
|
|||||||
pam_pwhistory)
|
pam_pwhistory)
|
||||||
logtext "Result: found ${PAM_MODULE} module (password history)"
|
logtext "Result: found ${PAM_MODULE} module (password history)"
|
||||||
# set default for having pam_pwhistory enabled
|
# set default for having pam_pwhistory enabled
|
||||||
|
PAM_PASSWORD_PWHISTORY_ENABLED=1
|
||||||
if [ "${PAM_PASSWORD_PWHISTORY_AMOUNT}" = "" ]; then PAM_PASSWORD_PWHISTORY_AMOUNT=10; fi
|
if [ "${PAM_PASSWORD_PWHISTORY_AMOUNT}" = "" ]; then PAM_PASSWORD_PWHISTORY_AMOUNT=10; fi
|
||||||
if [ ! "${PAM_MODULE_OPTIONS}" = "" ]; then
|
if [ ! "${PAM_MODULE_OPTIONS}" = "" ]; then
|
||||||
for I in ${PAM_MODULE_OPTIONS}; do
|
for I in ${PAM_MODULE_OPTIONS}; do
|
||||||
@ -166,7 +167,6 @@
|
|||||||
logtext "Result: password history (remember) configured for pam_pwhistory"
|
logtext "Result: password history (remember) configured for pam_pwhistory"
|
||||||
DigitsOnly ${VALUE}
|
DigitsOnly ${VALUE}
|
||||||
PAM_PASSWORD_PWHISTORY_AMOUNT=${VALUE}
|
PAM_PASSWORD_PWHISTORY_AMOUNT=${VALUE}
|
||||||
PAM_PASSWORD_PWHISTORY_ENABLED=1
|
|
||||||
Debug "Found password history enabled with module ${PAM_MODULE_NAME} and password amount ${PAM_PASSWORD_PWHISTORY_AMOUNT}"
|
Debug "Found password history enabled with module ${PAM_MODULE_NAME} and password amount ${PAM_PASSWORD_PWHISTORY_AMOUNT}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user