Score:0

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

xk flag

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?

in flag
You can do what you want using ACLs. Check out [this post](https://serverfault.com/questions/444867/linux-setfacl-set-all-current-future-files-directories-in-parent-directory-to).
diya avatar
la flag
Does this answer your question? [linux/setfacl - Set all current/future files/directories in parent directory to 775 with specified owner/group](https://serverfault.com/questions/444867/linux-setfacl-set-all-current-future-files-directories-in-parent-directory-to)
pat-bung avatar
xk flag
The post above seems a bit different from what I was looking for.. Thanks for your help.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.