diff options
Diffstat (limited to 'debian/passwd.cron.daily')
-rw-r--r-- | debian/passwd.cron.daily | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/passwd.cron.daily b/debian/passwd.cron.daily new file mode 100644 index 0000000..4778bf0 --- /dev/null +++ b/debian/passwd.cron.daily @@ -0,0 +1,9 @@ +#!/bin/sh + +cd /var/backups || exit 0 + +for FILE in passwd group shadow gshadow; do + test -f /etc/$FILE || continue + cmp -s $FILE.bak /etc/$FILE && continue + cp -p /etc/$FILE $FILE.bak && chmod 600 $FILE.bak +done |