### Bug description Hello. I'm trying to help a web developer with a first statamic website. We set the PHP umask to 0002 to get all the cache files group writeable. Sub-directories and files created here are OK: - ./storage/framework/cache/glide/ - ./public/cache/ `drwxrwxr-x 3 phpfpm phpfpm 4096 May 25 09:48 3c` But sub-directories and files created here are not OK they either do not subtract umask or they override chmod() with their own permissions: - ./storage/statamic/glide/ `drwxr-xr-x 3 phpfpm phpfpm 4096 May 25 13:49 containers` Here are the function calls as seen by strace: `[pid 37346] 0.000008 open("storage/statamic/glide/containers/partner_integrations/yolo-(3).png/7c0e057d9a1be42bde7c162fc34b1234.webp", O_WRONLY|O_CREAT, 0666` `[pid 37346] 0.000010 chmod("storage/statamic/glide/containers/partner_integrations/yolo-(3).png/7c0e057d9a1be42bde7c162fc34b1234.webp", 0644` ### How to reproduce 1) Verify umask `$ grep -i umask /etc/php/8.1/fpm/pool.d/www.conf /etc/systemd/system/php8.1-fpm.service.d/override.conf` `env[UMASK] = 0002` `UMask = 0002` 2) `rm -rf ./storage/statamic/glide/containers/` 3) visit page containing images: https://ourwebsite.com/blog/author/anrxc 4) `ls -al ./storage/statamic/glide/` `drwxr-xr-x 3 phpfpm phpfpm 4096 May 25 13:49 containers` ### Logs _No response_ ### Environment ```yaml OS: LAMP PHP: v8.1 FPM Statamic: v3.4.4 Laravel: v8.83.27 ``` ### Installation Fresh statamic/statamic site via CLI ### Antlers Parser None ### Additional details _No response_
Activity