I have an application that uploads a file via SFTP using sftpuser. Once the file is uploaded the owner and group is user1:user1. The owner of the parent directory is apache:apache. I can not figure out how the file is being associated to user1.
Any thoughts on where I should look or how to resolve this issue? I would like the file to inherit the owner/group and permissions from the parent directory.