How to change the owner of a file to that user when a user modifies a file

How to change the owner of a file to that user when a user modifies a file

I am using Ubuntu 20.04 version. I want to satisfy two conditions in an environment with multiple users. Users will all upload files via ftp.

Multiple users should be active in one home directory. And in order to know who the last person was, when a user modifies a file, the owner of that file should be changed to the user who modified the file.

The first condition seems to be possible, but I have no idea what to do with the second condition. Can vsftp satisfy both of the above conditions? How should I configure it?

관련 정보