I've been struggling with permissions on my new server, it has CentOs 5.3 and DirectAdmin, pretty much a fresh box. Previously I've had it work where it creates userpackage:userpackage groups and users for each package. Well on my new server that didn't work for other php scripts. So I ran this:
And it fixed it however I don't think it is the most secure way of doing things. I later slipped up and ran it on my /home directory and now I am sure my system is insecure and the DA file manager won't work because it says permissions are wrong.
Any suggestions?
TIA,
Mark
Code:
find . -type f -exec chown apache:apache {} \;
find . -type d -exec chown apache:apache {} \;
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
And it fixed it however I don't think it is the most secure way of doing things. I later slipped up and ran it on my /home directory and now I am sure my system is insecure and the DA file manager won't work because it says permissions are wrong.
Any suggestions?
TIA,
Mark