diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify smeserver-shared-folders-0.1_mod/root/etc/e-smith/events/actions/share-modify --- smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify 2010-12-15 08:46:06.000000000 +0100 +++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/events/actions/share-modify 2010-12-15 12:48:19.000000000 +0100 @@ -79,8 +79,10 @@ chdir "/home/e-smith/files/shares/$shareName" or die "Could not chdir to /home/e-smith/files/shares/$shareName"; +my $http = $share->prop('httpAccess') || 'none'; +my $groupowner = ($http eq 'none') ? 'root' : 'www'; -esmith::util::chownFile("root", "root", "."); +esmith::util::chownFile("root", "$groupowner", "."); chmod 0750, "."; #--------------------------------------------------