Open borislavba opened 1 year ago
Make sure the MIN and MAX ROUNDS are uncommented. Lynis will not throw an error. The system will ignore those fields.
Make sure the MIN and MAX ROUNDS are uncommented. Lynis will not throw an error. The system will ignore those fields.
I thought it goes without saying: Lynis should not propose changes which will be ignored by system.
SHACRYPT{MIN,MAX}_ROUNDS are checked when ENCRYPT_METHOD is not SHA256/512 (e.g. Fedora 37's default is Yescrypt). According to the comments in /etc/login.defs they are used only when ENCRYPT_METHOD is SHA256/512. Maybe the checks should be rewritten according to the ENCRYPT_METHOD selected.
Also note this: In Fedora's login.defs there's this: "Currently SHA_CRYPT_MIN_ROUNDS is not supported" In ArchLinux there is no such comment... So I'm a bit confused if the SHA_CRYPT_MIN_ROUNDS should be checked or not.