10

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?

marked as duplicate by Gilles, G-Man, Community Aug 28 '15 at 7:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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
11

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.