This commit is contained in:
2026-05-11 09:15:08 +02:00
parent 9bec2b9e42
commit 404ee3fec4
641 changed files with 416825 additions and 0 deletions
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
pathOpass='/etc/security/opasswd'
pathOpassOld='/etc/security/opasswd.old'
for p in "$pathOpass" "$pathOpassOld"; do
if [[ -e $p ]]; then
read a u g < <(stat -c '%#a %u %g' $p)
[[ $((a & 0177)) -gt 0 || $u -ne 0 || $g -ne 0 ]] && exit 1
fi
done
exit 0