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 |
terryfage |
1.2 |
+++ smeserver-shared-folders-0.3/root/etc/e-smith/events/actions/share-modify 2024-02-26 19:30:37.982750836 +0200 |
4 |
terryfage |
1.1 |
@@ -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, |
23 |
terryfage |
1.2 |
@@ -164,6 +165,7 @@ |
24 |
|
|
} |
25 |
|
|
$acl .= 'u:rsync:rX,' if ($rsync =~ /^local|global$/); |
26 |
|
|
$acl .= 'u:www:rX,' unless (($http eq 'none') && ($pydio ne 'enabled')); |
27 |
|
|
+ $acl .= 'g:admin:rX'; |
28 |
|
|
|
29 |
|
|
system($setfacl, |
30 |
|
|
'-m', |