[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

What's wrong with the permissions?



Hi all,

I am having permissions problems with my debian box and every solution I
have tried didn't change the situation.
I have a php application that has to read Maildir folders&files but fails
no matter how I set the permissions. Apache2 runs under www-data:www-data
and Postfix creates the Maildir under vmail:vmail .

dsrv:~# ls -alh /var/mail/virtual/domain.com/jo0atj50/
total 0
drwxrwsrwx 5 vmail vmail 120 2010-03-01 21:16 .
drwx--S--- 3 vmail vmail  72 2010-03-01 21:16 ..
drwxrwsrwx 2 vmail vmail  48 2010-03-01 21:16 cur
drwxrwsrwx 2 vmail vmail 320 2010-03-01 22:36 new
drwxrwsrwx 2 vmail vmail  48 2010-03-01 22:36 tmp


I have added user "www-data" to group "vmail"

dsrv:~# id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),5000(vmail)

Yet when Apache2 tries to _read_ a Maildir file, it always fails. What am
I doing wrong?
Thanks.

-JK





Reply to: