We have an Ubuntu 12.04
server set up with ProFTPd
for users to upload files. Each user has their own account and are jailed to their directory.
Normally, everything works fine, they get 644
permissions on created/uploaded files, and 755
permissions on created/uploaded folders.
The problem is, occasionally some files will get uploaded with 600
permissions (or changed after uploading, I'm not sure?), so they are not readable to anyone but the owner. Is there any way to lock/force permissions to 644
on files?
I know I can take away permissions with umask
but I don't want this, I want to stop the user reducing the permissions too much, so they shouldn't be able to go below 644 (rw- r-- r--)