|
|
|
@ -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,g:admins:rwX,d:u:$name:rwX,d:g:admins,rwX", |
|
|
|
|
"u:scanner:wX,u:$name:rwX,g:admins:rwX,d:u:$name:rwX,d:g:admins,rwX", |
|
|
|
|
'--', |
|
|
|
|
"/home/e-smith/files/scan/$name"); |
|
|
|
|
} |
|
|
|
@ -44,10 +44,11 @@ else { |
|
|
|
|
system ("$setfacl", |
|
|
|
|
'-R', |
|
|
|
|
'-m', |
|
|
|
|
"u:scanner:w,u:$name:rwX,d:u:$name:rwX", |
|
|
|
|
"u:scanner:wX,u:$name:rwX,d:u:$name:rwX", |
|
|
|
|
'--', |
|
|
|
|
"/home/e-smith/files/scan/$name"); |
|
|
|
|
} |
|
|
|
|
chmod 0755, "/home/e-smith/files/scan/"; |
|
|
|
|
system ("$setfacl", "-R", "-m", "g:admins:rwX,d:g:admins:rwX", "/home/e-smith/files/scan/"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|