0

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::--- enter image description here

1 Answers1

0

if as http user, the following command newgrp andrew allows you access the file then the reason will be that a session had not picked up the changes to groups - which usually requires a re-login to take affect.

fcbsd
  • 689