From 61f5ead07d60c5051d24171d5ecb7f20b38e3a11 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 22 Nov 2013 12:26:17 +0100 Subject: [PATCH] Makes sure role.ser has the correct privileges --- root/etc/e-smith/events/actions/pydio-user-rights | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/etc/e-smith/events/actions/pydio-user-rights b/root/etc/e-smith/events/actions/pydio-user-rights index 9a93f50..3613d72 100644 --- a/root/etc/e-smith/events/actions/pydio-user-rights +++ b/root/etc/e-smith/events/actions/pydio-user-rights @@ -96,6 +96,9 @@ foreach my $user (($a->users),$a->get('admin')){ open WROLE, '+>', "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; print WROLE serialize($data); close WROLE; + # Makes sure role.ser has the correct privileges + chmod 0770, "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; + chown '0', '102', "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; } my $pydio = $c->get('pydio') || die "Couldn't find pydio entry in ConfigDB\n";