Some scan needs read permission on directories

tags/ipasserelle-base-0.2.65-1
Daniel Berteaud 12 years ago
parent 7d054c3461
commit 37ce9e57ba
  1. 4
      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:wX,u:$name:rwX,g:admins:rwX,d:u:$name:rwX,d:g:admins,rwX",
"u:scanner:rwX,u:$name:rwX,g:admins:rwX,d:u:$name:rwX,d:g:admins,rwX",
'--',
"/home/e-smith/files/scan/$name");
}
@ -44,7 +44,7 @@ else {
system ("$setfacl",
'-R',
'-m',
"u:scanner:wX,u:$name:rwX,d:u:$name:rwX",
"u:scanner:rwX,u:$name:rwX,d:u:$name:rwX",
'--',
"/home/e-smith/files/scan/$name");
}

Loading…
Cancel
Save