I am trying to access a directory
test as user
This directory is owned by user
ayush and has group
The directory has permissions 0070, and group
ayush is a member of that group.
ayush:~> ls -ld drwxr-xr-x 7 ayush git 4096 Feb 15 11:33 . ayush:~> ls test ayush:~> ls -ld test/ drwxrwx--- 3 ayush git 4096 Feb 15 11:34 test/ ayush:~> chmod 070 test/ ayush:~> ls -ld test/ d---rwx--- 3 ayush git 4096 Feb 15 11:34 test/ ayush:~> ls -l test/ ls: cannot open directory test/: Permission denied ayush:~> groups git ayush:~> id uid=11417(ayush) gid=30(git) groups=30(git)
I have been seeing this error for a while now and it was not there before. This is not a new group and I have using it in some of my code here and there.
BTW, I switched to another user who is also part of this group who was able to access "test" directory without any issues.
EDIT 1: Its not just this, I am unable to change the group of the folder "test" with 770 permissions. I am getting an "operation not permitted" error. And, I am facing this issue with only the group "git". I am able to switch the group of the folder to another group of which I am a member of. But then I am not able to switch back the user to "git".