Can't create a file even if rights allow and I've relogged in

Posted by stiv on Super User See other posts from Super User or by stiv
Published on 2012-09-30T06:58:39Z Indexed on 2012/09/30 15:40 UTC
Read the original article Hit count: 233

Filed under:
|

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?

© Super User or respective owner

Related posts about unix

Related posts about filesystems