When a user creates a folder over SFTP it gets permissions of
drwxr-xr-x
I need it to have
drwxrw-r--
I know i can change the permissions with chmod but it would save me lots of time and effort if the folder could be created with the correct permissions from the start. Is there a way to change the default permissions for when a specific user creates a folder?
install -d
which defaults to 00755. (-: – JdeBP Jan 17 '20 at 11:32umask
is set per process. I’ll have to check whether this is usable over sftp; please add that requirement to the question. – Stephen Kitt Jan 17 '20 at 12:16