Chmod public_html + imap

cwfie

Verified User
Joined
Aug 3, 2005
Messages
91
Hi All,

I noticed that DirectAdmin creates the public_html and imap folder with 777/770 permissions:

/home/<user>/imap/domainname.com (chmod 770)
/home/<user>/public_html (chmod 777)

chown in both cases user:user

I know I can easily fix this with:
chmod 755 /home/*/public_html
chmod 755 /home/*/imap/*

Also I found:
This tells us the default is 755 which it clearly isn't in my case (apache_public_html=0 is set in directadmin.conf)

Question
Can I chmod these folders to 755 and, if so, how to prevent it from being created as 777?
Or is there a reason for these permissions?

Thanks! :)
 
Hello,

We do not know your setup, so we have no direct answers for you. Just try it on your side and test it with 755 and see how it works.
For me 755 permissions work fine.
 
Back
Top