From 2ff413127b42f3578c218c56aa2b81f7dcc71df6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 8 Apr 2009 03:22:28 +0200 Subject: [PATCH] shadow: disable creating mailbox files and use /var/mail instead. --HG-- extra : convert_revision : abd5e24ab085b0efbaf0c52f5afede8add835d48 --- templates/shadow/template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/shadow/template b/templates/shadow/template index 4ed1d26be2b..92d8a6b6180 100644 --- a/templates/shadow/template +++ b/templates/shadow/template @@ -29,6 +29,7 @@ pre_build() cd $wrksrc && \ sed -i 's/groups$(EXEEXT) //' src/Makefile && \ find man -name Makefile -exec sed -i 's/groups\.1 / /' {} + sed -i -e 's@/var/spool/mail@/var/mail@' etc/login.defs } post_install() @@ -39,6 +40,9 @@ post_install() install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f} done + # Disable creating mailbox files by default. + sed -i -e 's/yes/no/' $DESTDIR/etc/default/useradd + # Install the cron daily job. install -D -m744 ${FILESDIR}/shadow.cron-daily \ ${DESTDIR}/etc/cron.daily/shadow