From a982d958e3c5acba737f166177934ecdf8ebdf45 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:22:07 +0200 Subject: Adding debian version 1:4.5-1.1. Signed-off-by: Daniel Baumann --- debian/passwd.cron.daily | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 debian/passwd.cron.daily (limited to 'debian/passwd.cron.daily') 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 -- cgit v1.2.3