Open patch0 opened 7 years ago
With systemd, it would be better to use a path change trigger (see "man systemd.path"), so that permissions are fixed instantly. So, changes to /srv/domain/config/chown could trigger the construction of another .path trigger file, that watched the relevant paths for new files, or files with incorrect permissions.
Originally posted by @patch0 on 2016-09-23T14:16:04.621Z
As a way of letting people who need writable upload directories for wordpress and the like without having to use ssh, we should have something along the following lines:
A file like: /srv/domain/config/chown
Containing:
/relative/path/from/domain/directory - maybe from /public user to own directory group to own directory
eg:
/my/uploads/dir www-data www-data
A cronjob or similar can then run chown on each specified path for each domain that has things specified. It should be limited to relative paths within the domain it applies to.
NB: for the sake of keeping memory fresh, this is to attempt to further the idea of being able to do everything by editing files in FTP in an easily documented way.