![Samba 4는 실제로 Unix 파일 acl을 존중합니까?](https://linux55.com/image/35067/Samba%204%EB%8A%94%20%EC%8B%A4%EC%A0%9C%EB%A1%9C%20Unix%20%ED%8C%8C%EC%9D%BC%20acl%EC%9D%84%20%EC%A1%B4%EC%A4%91%ED%95%A9%EB%8B%88%EA%B9%8C%3F.png)
인터넷에서 이 주제를 조사한 후 Samba가 Unix 파일 acl을 고려해야 한다는 결론에 도달했습니다. 테스트에서 나는 그 반대를 발견했습니다. Unix 파일 모드 비트만 고려되며 파일 acl은 무시됩니다. 내 초기 가정이 정확하고 Samba가 Unix 파일 acl을 존중한다면 뭔가 잘못된 것입니다. 아래 설정을 보시고 제가 뭘 잘못하고 있는지 지적해주세요.
사용된 배포판 및 Samba 버전: Centos Linux 7.1
##### Server
# Create Linux users
useradd alice
useradd bob
# Create a directory to be shared; set ro permissions for alice using \
# file mode bits and rw permissions for bob using file acls
mkdir /home/smbshare
chown alice:alice /home/smbshare
chmod 0500 /home/smbshare
setfacl -m u:bob:rwx /home/smbshare
setfacl -m m:rwx /home/smbshare
# Create a file for testing purposes
echo 'Hello world!' > /home/smbshare/test.txt
# Add users to Samba database
pdbedit -a -u alice
pdbedit -a -u bob
# Define share in smb.conf and restart the smb daemon
vim /etc/samba/smb.conf
comment = smbshare for alice(ro) and bob(rw)
path = /home/smbshare
browseable = yes
writeable = yes
valid users = alice bob
systemctl reload smb
# Set the SELinux permissions and open samba on firewall
chcon -R -t samba_share_t /home/smbshare
firewall-cmd --add-service=samba --permanent
firewall-cmd --reload
##### Client
# Create Linux users
useradd alice
useradd bob
# Mount the remote Samba share
mkdir /mnt/smbshare
mount -t cifs -o username=alice,password=pass //192.168.1.112/smbshare /mnt/smbshare
# Now test the permissions
su - alice
cd /mnt/smbshare
cat test.txt # shows the contents of test.txt, as expected
echo 'I am alice' > test2.txt # permission denied, as expected
exit
su - bob
cd /mnt/smbshare # permission denied -- ???? NOT AS EXPECTED
exit
# I think it doesn't matter under which user to mount, but just to be sure \
# I tried to mount using bob's credentials
umount /mnt/smbshare
mount -t cifs -o username=bob,password=pass //192.168.1.112/smbshare /mnt/smbshare
# After checking file permissions I got the same results as above: \
# alice have read-only permissions (as expected), bob have no access (NOT as expected)