9 lines
172 B
Bash
9 lines
172 B
Bash
#!/usr/bin/env bash
|
|
|
|
files_to_check=$(grep -El 'pam_unix\.so\s+([^#\s]+\s+)?nullok\b' /usr/share/pam-configs/*)
|
|
if [[ -z "$files_to_check" ]]; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|