Can't create a file even if rights allow and I've relogged in
- by stiv
I try to create file in folder with group write access, user tomcat7 is in group. Why isn't it workin?
skr@konrad~/data/asu$ sudo -u tomcat7 sh
$ whoami
tomcat7
$ echo > /home/skr/data/asu/g.gz.index
sh: 2: cannot create /home/skr/data/asu/g.gz.index: Permission denied
$ ls -la /home/skr/data/asu/
total 18708
drwxrwxr-x 2 skr skr 4096 Sep 29 08:38 .
drwxrwxr-x 85 skr skr 4096 Jul 30 00:42 ..
$ grep ^skr /etc/group
skr:x:1002:tomcat7:mail
Tried to logout, but it doesn't help. Any ideas?