Permission denied after using setfacl

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
# file: home/A
# owner: A
# group: A
user::rwx
user:B:r--
user:C:rw-
group::---
mask::rw-
other::---
+5
source share
2 answers

As tampis allready said, in order to go to the directory (or list its contents or read the file in it) in linux, you need to execute permissions for this directory. Change the text setfaclto the following:

setfacl -Rm u:B:rx /home/A/
setfacl -Rm u:C:rwx /home/A/
+5

"setfacl -m  u:B:r-x /home/A"
0

Source: https://habr.com/ru/post/1535112/


All Articles