I have a question about sharing files on my Linux Mint setup. I want to enable different local users to share files on my machine without using any networks. I've tried creating a user group and a shared folder that all group members can access. However, I've run into a problem: while the folder is group-owned, any files created by users in that folder don't inherit the group ownership automatically. Because of this, other users can't edit those files created by someone else. Is there a way to ensure that files created in this shared folder properly share group ownership, or is there perhaps an existing shared folder feature I might be missing?
3 Answers
A straightforward way is to make a folder in something like /home/shared. You can then set it to be readable, writable, and executable for a specific group. Just make sure to add all users who need access to that group. That should set you on the right track!
You can set the setgid flag on the directory. This change ensures that any files created in that folder will inherit the group of the directory itself. Just remember, this only applies to new files, not to existing ones or those moved into the folder. Users can also manually change the group of their files to make it work if needed.
You might want to use the sticky bit approach as well. By giving the group full permissions and setting the folder like this: **drwxrwsr-x**, you can ensure files created in there use the group assigned to the folder. Just be cautious because this allows anyone to edit or delete files, so you might want to regularly check file ownership.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures