Advice: consistency in file system permissions
I have a folder that is being accessed, primarily, through FTP and Samba. This folder is NOT the root of the Samba share, or of the FTP root. However, the files in this folder need to be owned and writable by a given user.
The given user does own the folder in question, and has appropriate permissions. However, when subdirectories or new files are created, they are, by default, owned by root (user) and users (group). This is an issue because the given user needs to have full control of the folder
There are solutions to the problem, but none of them give me what I want.
1) Create a shell script that resets the ownership & permissions every X minutes (a cron job) - this might be my best bet, but unless its running every minute, it could leave periods where files made by samba aren't accessible by the FTP user
2) Change samba to force ownership to a specific user. I'm not sold on this idea because it is a share-level setting.
Do you have any advice on the issue? Is there a way to make sure new files created in that directory match the parent directory's ownership and permissions?