This question already has an answer here:
I'm attempting to cat a file with 770 permissions as a user who is part of the group (but not the owner of the file). This should provide sufficient permissions to my understanding, yet I encounter a
Permission denied nevertheless. What am I missing?
[altay@arch ~]$ ls -l test.txt -rwxrwx--- 1 http http 24 Sep 15 18:56 test.txt [altay@arch ~]$ groups altay lp wheel http network video audio storage autologin users [altay@arch ~]$ cat test.txt cat: test.txt: Permission denied [altay@arch ~]$ sudo cat test.txt I am not readable by my group despite 770 permissions.