this post was submitted on 27 Oct 2023
29 points (93.9% liked)
Linux
48951 readers
491 users here now
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
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why are you making this so complicated?
Create a shared directory outside of home. Put both users into a group. Make sure that the directory and the files created inside it are owned and writeable by that shared group.
Read up on permissions and ACLs for more on doing this. (I'm being deliberately vague on specifics here because I always seem to fuck up the details here and need to go back to the manuals anyway.)
Home is for your stuff. It is possible to setup sharing of stuff from within home, but there are always going to be more problems with this route because it's designed to be private by default.
You can't hardlink directories. Hardlinking files wouldn't help anyway because each link would get identical permissions. I can't even hardlink at all between home directories on my system because each home directory is a separate filesystem.
Hmm I like Nextcloud and Flatpak apps accessing my files. Not sure about other directoris, but
/var/shared/work
could fit on immutable OSsesWhat does an immutable OS, flatpak, or Nextcloud have to do with basic file permissions between users on the same machine? You still need to learn how basic permissions work with any of those in order to get them working properly anyway.