fixing a dovecot user right bug

This commit is contained in:
Benjamin Sonntag 2012-08-26 17:29:41 +00:00
parent 6e2a1196cc
commit b404381776
1 changed files with 3 additions and 3 deletions

View File

@ -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