There are 3 users: A, B, C.
A has mydir in its home folder/home/A/mydir
B can read the /home/Acontents
C can read and write /home/Acontent
I tried this way:
setfacl -Rm u:B:r /home/A/
setfacl -Rm u:C:rw /home/A/
su B
ls /home/A
ls: cannot access /home/A: Permission denied
mydir
cd /home/A
-bash: cd: /home/A/: Permission denied
cat / etc / fstabs:
/ dev / sdb1 / media / esterno ext3 default, acl 0 2
getfacl / home / A:
getfacl: Removing leading '/' from absolute path names
user::rwx
user:B:r--
user:C:rw-
group::---
mask::rw-
other::---
source
share