X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fcommon_sysadmin.sh;h=cb1753d1acf0370e30b141b26094111a640cdb30;hb=78ed23618219fa042729b66c51d4185af67fdabe;hp=0deb72574e5f0c68fb7268bd1920ed146cc764fc;hpb=baf5d7c693e351bd775114380dc0111bc3e4028e;p=feisty_meow.git diff --git a/scripts/system/common_sysadmin.sh b/scripts/system/common_sysadmin.sh index 0deb7257..cb1753d1 100644 --- a/scripts/system/common_sysadmin.sh +++ b/scripts/system/common_sysadmin.sh @@ -361,7 +361,7 @@ function maybe_create_site_storage() chmod g+rx "$chow_path" exit_on_error "Failed to add group permissions on the path: $chow_path" # reassert the user's ownership of any directories we might have just created. - chown $(logname) "$chow_path" + chown "$(logname):$(logname)" "$chow_path" exit_on_error "changing ownership to user failed on the path: $chow_path" chow_path="$(dirname "$chow_path")" done