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?
Asked
Active
Viewed 67 times
1
-
You expect an answer when you don't tell use what CMS you are using? – DavidPostill Dec 10 '17 at 11:13
-
@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 – t1b0 Dec 10 '17 at 19:00
-
[Wrong ownership when SFTP files](//superuser.com/q/757244)? – DavidPostill Dec 10 '17 at 19:43
-
@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? – t1b0 Dec 10 '17 at 19:48
-
No idea. Sorry. – DavidPostill Dec 10 '17 at 19:49
1 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 Mohamed
- 31
- 1
- 10