From c3ac810c19abc2bacef88bd98b3d4d64f1265c66 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Sat, 29 Jan 2022 11:01:30 -0500 Subject: [PATCH] Add o+x to storage root since jammy's default permissions on new home directories is 0750 and access by other users (daemons) is needed --- setup/start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/start.sh b/setup/start.sh index 9c9e521d..63b08c83 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -76,6 +76,11 @@ fi # migration number for this version of Mail-in-a-Box. if ! id -u $STORAGE_USER >/dev/null 2>&1; then useradd -m $STORAGE_USER + # default permissions for new home directories in jammy (ubuntu + # 22) changed from 0755 to 0750. openldap (slapd.service) runs + # under its own user account (openldap) and requires access to + # STORAGE_ROOT + chmod o+x $STORAGE_ROOT fi if [ ! -d $STORAGE_ROOT ]; then mkdir -p $STORAGE_ROOT