1 |
terryfage |
1.1 |
diff -urN smeserver-shared-folders-0.3.old/root/etc/e-smith/events/actions/share-modify smeserver-shared-folders-0.3/root/etc/e-smith/events/actions/share-modify |
2 |
|
|
--- smeserver-shared-folders-0.3.old/root/etc/e-smith/events/actions/share-modify 2024-02-21 13:01:59.405331433 +0200 |
3 |
|
|
+++ smeserver-shared-folders-0.3/root/etc/e-smith/events/actions/share-modify 2024-02-21 12:46:45.000000000 +0200 |
4 |
|
|
@@ -90,8 +90,8 @@ |
5 |
|
|
#-------------------------------------------------- |
6 |
|
|
|
7 |
|
|
my %properties = $share->props; |
8 |
|
|
-my @writegroups = split(/[;,]/,($properties {'WriteGroups'} || 'admin')); |
9 |
|
|
-my @readgroups = split(/[;,]/,($properties {'ReadGroups'} || 'admin')); |
10 |
|
|
+my @writegroups = split(/[;,]/,($properties {'WriteGroups'} || '')); |
11 |
|
|
+my @readgroups = split(/[;,]/,($properties {'ReadGroups'} || '')); |
12 |
|
|
my @writeusers = split(/[;,]/,($properties {'WriteUsers'} || '')); |
13 |
|
|
my @readusers = split(/[;,]/,($properties {'ReadUsers'} || '')); |
14 |
|
|
my $rsync = $properties{'rsyncAccess'} || 'none'; |
15 |
|
|
@@ -129,6 +129,7 @@ |
16 |
|
|
} |
17 |
|
|
$acl .= 'u:rsync:rX,' if ($rsync =~ /^local|global$/); |
18 |
|
|
$acl .= 'u:www:rwX,' unless (($http eq 'none') && ($pydio ne 'enabled')); |
19 |
|
|
+ $acl .= 'g:admin:rwX'; |
20 |
|
|
|
21 |
|
|
# Set the effective ACLs |
22 |
|
|
system($setfacl, |