shadow: add a daily cron job to verify passwd integrity.
--HG-- extra : convert_revision : 081ca518076657014737326a064b09278687663c
This commit is contained in:
parent
8f79211760
commit
4789159633
2 changed files with 11 additions and 0 deletions
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'
|
||||
pkgname=shadow
|
||||
version=4.1.2.2
|
||||
revision=1
|
||||
patch_files="$pkgname-enable-pam.diff"
|
||||
distfiles="ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$pkgname-$version.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
|
@ -37,4 +38,8 @@ post_install()
|
|||
groupmod newusers useradd userdel usermod other; do
|
||||
install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f}
|
||||
done
|
||||
|
||||
# Install the cron daily job.
|
||||
install -D -m755 ${FILESDIR}/shadow.cron-daily \
|
||||
${DESTDIR}/etc/cron.daily/shadow
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue