This question already has an answer here:
There's a situation I don't quite understand.
I have this directory, where the group 'webadmin' has
rwx rights :
$ ls -la total 8 drwxrwxr-x 2 root webadmin 4096 Aug 27 12:17 . ⋮ ⋮
I am in the group webadmin :
$ groups eino eino : eino sudo webadmin
however, I can't create any file in the directory :
$ touch test.txt touch: cannot touch 'test.txt': Permission denied
How come? Shouldn't the
rwx permissions give me right to do it?