I am running a digital ocean droplet with Ubuntu 16.04.3.
One of the folders is designated for FTP uploads. Access to this folder is limited to an upload user called transferuser
There is another folder called dataFolder which where transferuser has no permissions.
When logged in as root, if I copy everything from the FTP folder to the dataFolder, permissions on the copied files are still specific to only transferuser.
How can I set permissions on a folder so that any file copied to that folder then gets those same permissions?