Question about CHMOD values

In the Troubleshooting Zenphoto page, it says one can set the folders and files to 0644 (files) and 0755 (folders) for better security. It goes on to say that you can set this in your zp-config.php script to set the base permissions. But this is just one setting, so I'm confused.

If you set it to 0644, will it make all the files AND folders 0644? Or the same thing for 0755 (sets all files AND folders to 0755)?

I'd love it if someone can clarify how this setting in zp-config works. And what the best setting is to use on your server for best security once you have everything set up.

Comments

  • If you will note, 0644 is a binary subset of 0755. What actually happens is that Zenphoto masks choice against what you set in the zp-config.php file. So for folders it would normally use 0777. That masked by 0755 yields 0755. For images zenphoto would use 0666. That masked with 0755 yields 0644.

    Also note that as of the current development stream you can make this change more easily via the setup program.

    I recommend you install the nightly build and change the setting via the setup program.
Sign In or Register to comment.