1

I am Trying to configure ProFTPd to change group for newly created files/directories.

In my config I have this:

<Directory /home/*>
  GroupOwner www
</Directory>

Which does not seem to work.

All users are added to www group.
Debug shows nothing regarding to a group change.

I'm using FREEBSD 9.0-release.

EDIT: I'm willing to try any other FTP server that makes this easier.

0

After a deep research, I found out that proftpd is not capable of changing a group of newly uploaded file..

However workaround was found:

You need to simply change group for the user's home folder, after which all newly uploaded files will inherit the group from the home folder.

Not much of a solution, but at least something. =)

0

In vsftpd you can do this with the local_umask=<number> option. This changes the permissions of an uploaded file for local users. With this option you can thus make sure that group member always have read and write permissions on files and directories.

You need to check the default file permissions (and owner and group, just to be sure!) of uploads and then calculate the correct umask. The default umask that vsftpd uses is 077.

  • chmod is not related to this, i need chown – Alex G Oct 23 '12 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.