* debian/login.postinst: Install /var/log/faillog during initial installs

only. This permits admins to disable failed logins recording.
    Closes: #488420
This commit is contained in:
nekral-guest
2009-05-12 20:05:53 +00:00
parent 6752d525c3
commit cfbe85f1f0
2 changed files with 12 additions and 5 deletions

5
debian/changelog vendored
View File

@@ -3,8 +3,11 @@ shadow (1:4.1.4-2) unstable; urgency=low
* The "Banon" release.
* debian/rules, debian/passwd.linda-overrides, debian/login.linda-overrides:
Removed linda-overrides files.
* debian/login.postinst: Install /var/log/faillog during initial installs
only. This permits admins to disable failed logins recording.
Closes: #488420
-- Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> Mon, 11 May 2009 22:29:12 +0200
-- Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> Mon, 11 May 2009 22:39:07 +0200
shadow (1:4.1.4-1) unstable; urgency=low

12
debian/login.postinst vendored
View File

@@ -14,10 +14,14 @@ then
fi
rm -f /etc/pam.d/login.pre-upgrade 2>/dev/null
if [ ! -f /var/log/faillog ] ; then
touch /var/log/faillog
chown root:root /var/log/faillog
chmod 644 /var/log/faillog
if [ "$1" = "configure" ] && [ "$2" = "" ]
then
# Install faillog during initial installs only
if [ ! -f /var/log/faillog ] ; then
touch /var/log/faillog
chown root:root /var/log/faillog
chmod 644 /var/log/faillog
fi
fi
#DEBHELPER#