|
|
@ -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: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"); |
|
|
|
"/home/e-smith/files/scan/$name"); |
|
|
|
} |
|
|
|
} |
|
|
@ -44,7 +44,7 @@ else { |
|
|
|
system ("$setfacl", |
|
|
|
system ("$setfacl", |
|
|
|
'-R', |
|
|
|
'-R', |
|
|
|
'-m', |
|
|
|
'-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"); |
|
|
|
"/home/e-smith/files/scan/$name"); |
|
|
|
} |
|
|
|
} |
|
|
|