11

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?

Eino Gourdin
  • 245
  • 1
  • 3
  • 9
  • 1
    refer to this [post](http://unix.stackexchange.com/questions/29545/group-member-cannot-write-even-with-write-permission) – 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

1 Answers1

14

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

Jakob Lenfers
  • 737
  • 6
  • 20