Answer the question
In order to leave comments, you need to log in
When uploading files via ftp, by the user ftp_usr, how can I force proftp to change the owner and group for the file to test: test?
The question is the following.
There is Apache which works with the mpm-itk module.
There is a project that runs under its own user and group, let's call them test: test
Accordingly, the owner and group of the project root directory are recursively set to test: test.
There is a folder in the root of the site, let's call it ftp.
Also created is the user ftp_usr, whose home directory points to this folder.
Task.
When uploading files via ftp, by user ftp_usr, force proftp to change the owner and group for the file to test:test.
I know that there are 2 directives GroupOwner and UserOwner, but for some reason only GroupOwner works, but does not want to change the user.
Answer the question
In order to leave comments, you need to log in
Mode.
Turn on
<IfModule mod_cap.c>
CapabilitiesEngine on
CapabilitiesSet +CAP_CHOWN
</IfModule>
UserOwner test
GroupOwner test
Umask 002 003
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question