I have a user
john. This is the main user and he has important files in the
/home/john directory. Applications on the server are running from this account. John has SFTP access to maintain these files.
I want to add a second user
victor whom I also want to grant SFTP read/write access, but only to specific directories in
/home/john. When Victor uploads a file it needs to be masked (?) as user John, because otherwise, the applications can't do anything with the files.
I know this is a 2-part thing. Do I need to set up proper permissions so both users can edit each other's files? After that, I need to edit my SFTP configuration?
Obviously, I don't know much about this. Online documentation is confusing me very much, and I don't know where to start. Hope to get some help here.