This is a comment on Setting File Permissions, posted by WikiAdmin at 02.09.2019 18:09
View source for setting permissions for files and directories
to make files ##-rw- r-- r--##: %%su find /your/location -type f -exec chmod 644 {} \; %% to make directories ##rwx r-x r-x##: %%su find /your/location -type d -exec chmod 755 {} \; %% There could be some different situations when the webserver runs: 1. with the same username as file/directory **owner** 2. with the same group name as file/directory owneruser **group** 3. as **nobody** 4. as root This permission will work well for #1, #4: 0644 (~rw-r--r--) system files 0644 (~rw-r--r--) server writable files 0755 (~rwxr-xr-x) system directories 0755 (~rwxr-xr-x) server writable directories or 0600 (~rw-------) system files 0600 (~rw-------) server writable files 0700 (~rwx------) system directories 0700 (~rwx------) server writable directories This permission will work well for #1, #2, #4: 0644 (~rw-r--r--) system files 0664 (~rw-rw-r--) server writable files 0755 (~rwxr-xr-x) system directories 0775 (~rwxrwxr-x) server writable directories and 0640 (~rw-r-----) system files 0660 (~rw-rw----) server writable files 0750 (~rwxr-x---) system directories 0770 (~rwxrwx---) server writable directories This permission will work well for #3: 0644 (~rw-r--r--) system files 0666 (~rw-rw-rw-) server writable files 0755 (~rwxr-xr-x) system directories 0777 (~rwxrwxrwx) server writable directories So I guess there should be 4 variables tested and if works set in config during installation: system_files = 0644 server_writable_files = 0644 system_directories = 0755 server_writable_directories = 0755