Migrating from windows server (where this was unbelievably easy with virtual directories) to a linux server and have worked on this for weeks...
I want to share a users folder contents with all other users on the server.
share this folder: /home/user1/public_html/sharedfolder
to be available to user2, user3, etc.
symlinks seemed to be the answer, so I set up a symlink on user2 as so:
/home/user2/public_html/symlinkedfolder
I added user2 to group user1, set permissions on the folders, but it wouldn't work until I changed owner on the target folder to user2, which works for user2 (and user1, which surprised me) but won't work for user3, right?
When owner of target folder (and all files) is user1, error_log says "A symlink in the path has wrong destination owner"
Most of what I've done came from here: https://forums.cpanel.net/threads/share-directory-across-multiple-accounts.407431/ although I've read TONS of articles and tried lots of things before narrowing it down to an ownership issue (I think?)
So who should own the target of the symlink so it can be shared with all users?
Is there a complete (idiotproof) guide to accomplish this? Or a better method (something that works like windows server virtual directories would be awesome)? Please remember I'm new to Linux, and thanks for any suggestions.