From b404381776efcf886aef81ec24d7efb0f37051df Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sun, 26 Aug 2012 17:29:41 +0000 Subject: [PATCH] fixing a dovecot user right bug --- debian/alternc.postinst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/alternc.postinst b/debian/alternc.postinst index b6a600ee..b03ea87f 100644 --- a/debian/alternc.postinst +++ b/debian/alternc.postinst @@ -56,9 +56,9 @@ case "$1" in if ! getent passwd vmail; then useradd -g vmail -u 1998 vmail -d "$VMAIL_HOME"/mail -m fi - chown -R vmail:vmail "$VMAIL_HOME"/mail - chmod u+w "$VMAIL_HOME"/mail - chmod -R g+w "$VMAIL_HOME"/mail + chown vmail:vmail "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* + chmod u+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* + chmod g+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* # build local.sh if it does not exist if [ ! -f $CONFIGFILE ]; then