shadow: add a daily cron job to verify passwd integrity.
--HG-- extra : convert_revision : 081ca518076657014737326a064b09278687663c
This commit is contained in:
6
templates/shadow/files/shadow.cron-daily
Executable file
6
templates/shadow/files/shadow.cron-daily
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Verify integrity of password and group files
|
||||||
|
/usr/sbin/pwck -r
|
||||||
|
/usr/sbin/grpck -r
|
||||||
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
# Template file for 'shadow'
|
# Template file for 'shadow'
|
||||||
pkgname=shadow
|
pkgname=shadow
|
||||||
version=4.1.2.2
|
version=4.1.2.2
|
||||||
|
revision=1
|
||||||
patch_files="$pkgname-enable-pam.diff"
|
patch_files="$pkgname-enable-pam.diff"
|
||||||
distfiles="ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$pkgname-$version.tar.bz2"
|
distfiles="ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$pkgname-$version.tar.bz2"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
@@ -37,4 +38,8 @@ post_install()
|
|||||||
groupmod newusers useradd userdel usermod other; do
|
groupmod newusers useradd userdel usermod other; do
|
||||||
install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f}
|
install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Install the cron daily job.
|
||||||
|
install -D -m755 ${FILESDIR}/shadow.cron-daily \
|
||||||
|
${DESTDIR}/etc/cron.daily/shadow
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user