Can I share a folder inside my home directory with another user?
I have two users on a system, agent and daemon. An external server connects as agent and rsyncs files to ~agent/incoming
I want daemon to have access to the files in ~agent/incoming but I don't want agent to have access to any of daemon's files.
I set up a group called automaton and added both users to it. I then chmod'ed the ~agent/incoming folder to drwxrws--- (notice the sticky bit) and chowned that folder to agent:automaton.
The process runs and new files are delivered to the incoming folder and are set as agent:automaton with permissions -rw-rw---- but daemon is not able to view or copy these files:
stat: cannot stat (path here) : Permission denied
What am I doing wrong?