Grant admins access to the scan share

tags/0.2.19 0.2.19
Daniel Berteaud 12 years ago
parent 3f51bf745e
commit d5b8c50ed3
  1. 3
      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"; mkpath "/home/e-smith/files/scan/$name";
system ("$setfacl", system ("$setfacl",
'-m', '-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"); "/home/e-smith/files/scan/$name");
} }
@ -48,6 +48,7 @@ else {
'--', '--',
"/home/e-smith/files/scan/$name"); "/home/e-smith/files/scan/$name");
} }
system ("$setfacl", "-R", "-m", "g:admins:rwX", "/home/e-smith/files/scan/");
} }
exit (0); exit (0);

Loading…
Cancel
Save