Create group, add users to group, create a new directory, chown it to the group, chmod g+s and done.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Best solution.
You'll also need umask for each user to be 002 for it to work transparently.
You could put users in the same group, and give some folders group permissions.
This is the way.
This is the way.
Aside from the group suggestions, you could also use ACLs. https://wiki.archlinux.org/title/Access_Control_Lists
I could hardlink folders from one user to another
I don't think you could, afaik hardlinks are only allowed for files. You might be able to something similar with a bind mount though.
Personally I keep those kind of folders outside a single user's home dir. On one computer I have /home/Shared (not a real user, I just put the folder there.. no idea if it's a bad idea, but noone else is going to be creating users on that computer anyway).