I created a file /home/andrew/lolka123
and granted read
permission to a group named andrew
. (user andrew owns the file and also a parent directory) I also added group permission to the parent directory.
Now I want to grant access to this file to user http.
Both users andrew and http are present in group andrew
.
Now I'm trying to read file from http user but it gives me Permission denied
, why?
getfacl /home/andrew/lol123
:
# file: home/andrew/lol123
# owner: andrew
# group: andrew
user::rw-
group::r--
other::r--
getfacl ~/
:
getfacl: Removing leading '/' from absolute path names
# file: home/andrew/
# owner: andrew
# group: andrew
user::rwx
user:nobody:--x
group::---
mask::rwx
other::---
EDIT 2:
sudo chmod g+rx /home/andrew/
doesn't work. getfacl /home/andrew/
still shows group::---
getenforce
please. What OS are you using?4.11.9-1
kernel.getenforce
command is not available, and it's not available in any packages fromArch
repository.getfacl .
?getfacl .
to the question.group::---
perms on the directory are going to deny access to anyone in the directory's group (aside from the directory's owner).