Ubuntu 20.04 VPS
I've read multiple threads on this and still don't get it. I have an FTP user deanhh for ONE of multiple virtual hosts in apache2. There are other FTP users also, for other domains. Deanhh is the owner of his domain's folder. When he creates a folder or creates and uploads a file via FTP he is the owner of the folder/file. That's what I want.
BUT the file has no permissions on it for other. I set umask 0000 on the telnet command line yesterday. Everything worked fine. When deanhh uploaded a file via FTP it inherited the permissions of the folder. Now umask is back to 0022 so when he uploads a new file or creates a folder there are no permissions on it for other.
How do I set it so that when an FTP user creates a folder or uploads a NEW file, they retain ownership AND 'other' has the permissions that were set for 'other' on the folder the file was uploaded to - PERMANENTLY?