Automatically set owner of system created file

1

So you know how CMS create files by themselves, well I can't find a fix to make those files automatically belong to the right group (the group for the SFTP users). Is there something I can do to prevent this, or should I setup a cron job or something similar?

RektibouCaribou

Posted 2017-12-10T10:58:28.080

Reputation: 11

You expect an answer when you don't tell use what CMS you are using? – DavidPostill – 2017-12-10T11:13:50.327

@DavidPostill Well no matter what the CMS, it's the files that are created by it that matter. It's just that the FTP users can't modify the files because they've been created by the system. This happens with all the CMS – RektibouCaribou – 2017-12-10T19:00:09.593

Wrong ownership when SFTP files? – DavidPostill – 2017-12-10T19:43:01.120

@DavidPostill Not exactly that, but I had an idea: maybe I should try to assign the FTP users to www-data group. Would that pose a security risk though? – RektibouCaribou – 2017-12-10T19:48:46.327

No idea. Sorry. – DavidPostill – 2017-12-10T19:49:22.137

Answers

-1

There is most likely no way to prevent this from happening in the future, but if you have the time to correct these problems yourself, you just go into the file's properties and change the owner of the file.

Jacob M.

Posted 2017-12-10T10:58:28.080

Reputation: 21