* debian/passwd.cron.daily: Handle the backups of the user and group

databases so that it can be removed from the standard daily cron job.
    Closes: #554170
This commit is contained in:
nekral-guest
2010-03-20 10:45:12 +00:00
parent 76097618c2
commit 68fdd46a81
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -31,6 +31,9 @@ shadow (1:4.1.4.3-1) UNRELEASED; urgency=low
protect against mis-typed root login can use "requisite", but will be
vulnerable to user enumeration attacks on insecure lines, and should use
pam 1.1.0-4 at least. Closes: #574082, #531341
* debian/passwd.cron.daily: Handle the backups of the user and group
databases so that it can be removed from the standard daily cron job.
Closes: #554170
-- Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> Sun, 24 Jan 2010 18:28:33 +0100
+9
View File
@@ -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 $FILE $FILE.bak && chmod 600 $FILE.bak
done