Need to show pdf (that saved/created in directory by samba remote user) in browser
The working directory is /workdir/test, so
$cd /workdir
The test directory is created by user:"user" remotely through samba and the ACL as below
$ls -l | grep test
drwxrwx---+ user:samba test
Then setfacl
$sudo setfacl -R -m d:g:apache:rwx test
$getfacl test
# file: test
# owner: user
# group: samba
user::rwx
group::rwx
other::---
default:user::rwx
default:user:apache:rwx
default:group::rwx
default:group:apache:rwx
default:mask::rwx
default:other::---
Save the tst.pdf in directory test through remote windows client by user:"user"
$ls -l test/tst.pdf
-rw-rw----+ user:samba tst.pdf
$getfacl test/tst.pdf
# file: test/tst.pdf
# owner: user
# group: samba
user::rw-
user:apache:rwx #effective:rw-
group::rwx #effective:rw-
group:apache:rwx #effective:rw-
mask::rw-
other::---
My understanding is (which proofed wrong) the browser can (through apache; disregard the default ACL set by samba) access tst.pdf and shown in browser. But the file is failed to load. Am I misunderstand the function of setfacl?
Hope that someone can help me out. Thanks.