File App Umask Config

Hi there,

I’m trying to figure out how to go about tweaking the default umask settings for files created within the Files App - it appears to be using a umask of 0022, which we’d like to change.

Currently, we have the intended umask set within /etc/profile and /etc/bashrc, which seemed to help with a lot of related troubles, but content created within the Files App do not seem to be taking on such settings.

I did see another article posted here from 2019 that referenced this exact issue, which seemed to be a workaround at the time ( Files App umask ). However, in another post, sometime in 2021, it was mentioned that the proposed fix no longer worked - our attempt at implementation, also, did not seem to work for us.

Thanks!

You may be able to do the same workaround, only with a ruby (instead of node) file in a slightly different location (sys/dashboard/bin instead of sys/files/bin).

#!/usr/bin/env bash

# /var/www/ood/apps/sys/dashboard/bin/ruby

# 0002 or the umask you'd like
umask 0002

exec ruby "$@"