I have a new VPS setup with Debian + LEMP stack. Wondering how to automatically chown/chgrp new files uploaded via FTP to /srv/www/siteroot to www-data:www-data?
I am under the assumption this can be with a proper umask?
|
|
umask sets the permissions on a file, not the ownership. You can use |
|||
|
|
The You could add the user who uploads the files to the If you also use PHP, you could set up |
|||
|
|
|
If you are uploading via FTP, there should be option in FTP service config files to always set specific user and/or group on uploaded files. |
|||
|
|