C
C
ChiPer2013-12-26 14:18:19
linux
ChiPer, 2013-12-26 14:18:19

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

1 answer(s)
K
kenny_opennix, 2013-12-27
@kenny_opennix

Mode.
Turn on

<IfModule mod_cap.c>
   CapabilitiesEngine on
   CapabilitiesSet +CAP_CHOWN
</IfModule>

For directory
UserOwner test
   GroupOwner test
   Umask 002 003

Works for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question