Writing directory: permission denied even though dir seems to be chmodded correctly

Posted by Aron Rotteveel on Server Fault See other posts from Server Fault or by Aron Rotteveel
Published on 2010-12-30T15:20:12Z Indexed on 2010/12/30 15:56 UTC
Read the original article Hit count: 158

Filed under:
|
|

I am having some trouble creating files in directory on my Ubuntu machine:

I added myself to the www-data group in order for me to easily edit stuff in my /var/www dir on my development machine.

stat /var/www shows the following:

  File: ‘/var/www’
  Size: 4096        Blocks: 8          IO Block: 4096   map
Device: 808h/2056d  Inode: 142853      Links: 3
Access: (0775/drwxrwxr-x)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2010-12-30 16:03:18.563998000 +0100
Modify: 2010-12-30 16:02:52.663998000 +0100
Change: 2010-12-30 16:03:13.111998001 +0100

Still, it is impossible for me to create anything below /var/www (the only way for it to work is to chmod it to 777. What am I missing?

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu