The one thing stopping me from having a “work profile” “private profile” etc, is the permissions.
I could hardlink folders from one user to another, but then there would be permission issues.
I could do a chown -r /home/user/Work
but every newly created file would again belong to “work” and I couldnt edit it with “private” for example.
Libreoffice also doesnt like any permission issues and will only open a copy in those cases.
Would I need an autostart script using pkexec, or a systemd service to always make both users recursively owners of these directories? Is there a better way?
Btw, I use Fedora Kinoite (KDE) and moving things from one user to another takes very long, unlike moving withing the same user. It seems as if it would really change the file location, not just the pointer, but I am no BTRFS expert at all.
Create group, add users to group, create a new directory, chown it to the group, chmod g+s and done.
Best solution.
You’ll also need umask for each user to be 002 for it to work transparently.