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?

  • 1
    refer to this post – gwillie Aug 27 '15 at 12:10
  • Yes indeed, as Lekensteyn's response showed, the group addition is not applied during the current session. Thanks! – Eino Gourdin Aug 27 '15 at 13:24

Log out and log back in. You probably added the group during your current session.

Not the answer you're looking for? Browse other questions tagged or ask your own question.