Hi All,
I noticed that DirectAdmin creates the public_html and imap folder with 777/770 permissions:
chown in both cases user:user
I know I can easily fix this with:
Also I found:
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!
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!
