From d5b8c50ed320ede396a39346aae64018b24e4d48 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 15 Nov 2012 17:08:17 +0100 Subject: [PATCH] Grant admins access to the scan share --- root/etc/e-smith/events/actions/share-modify-scan | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/etc/e-smith/events/actions/share-modify-scan b/root/etc/e-smith/events/actions/share-modify-scan index 5c1b801..2e02821 100644 --- a/root/etc/e-smith/events/actions/share-modify-scan +++ b/root/etc/e-smith/events/actions/share-modify-scan @@ -18,7 +18,7 @@ if ($event eq 'user-create'){ mkpath "/home/e-smith/files/scan/$name"; system ("$setfacl", '-m', - "u:scanner:w,u:$name:rwX,d:u:$name:rw", + "u:scanner:w,u:$name:rwX,g:admins:rwX,d:u:$name:rwX,d:g:admins,rwX", '--', "/home/e-smith/files/scan/$name"); } @@ -48,6 +48,7 @@ else { '--', "/home/e-smith/files/scan/$name"); } + system ("$setfacl", "-R", "-m", "g:admins:rwX", "/home/e-smith/files/scan/"); } exit (0);