You are not logged in.

#1 2026-01-03 11:58:48

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,623

[Solved] Where to put shared data ?

In a few days I'll get a new workstation pc and am considering what changes to make to my partition setup.

On my current setup there's a data partition mounted as /data that has 2 purposes :
- stuff that needs to be accessible by multiple users (local package repo, chroots)
- stuff that takes up a lot of space

For both tasks write access for specific groups/users is needed.
I'd prefer to have less folders in / and /srv appears to be suitable.

What do you feel is better ?

Last edited by Lone_Wolf (2026-01-09 23:10:34)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#2 2026-01-03 12:30:08

cryptearth
Member
Registered: 2024-02-03
Posts: 1,884

Re: [Solved] Where to put shared data ?

well - given zfs usually does the same for a pool with default options as a zfs user myself i don't see nothin wrong with that
aside maybe storing shared data on a nas and using fast network - but i guess there's a reason for have the storage local to the workstation

Offline

#3 2026-01-03 13:08:33

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,624
Website

Re: [Solved] Where to put shared data ?

I tend to either put directories in /, or in /home/.  e.g. /home/arch/ used to contain everything related to packaging (git repos, chroots).

Offline

#4 2026-01-03 16:01:48

ReDress
Member
From: Nairobi
Registered: 2024-11-30
Posts: 202

Re: [Solved] Where to put shared data ?

The bug is very cumbersome. I will be letting it go :-)

Offline

#5 2026-01-03 22:14:12

cryptearth
Member
Registered: 2024-02-03
Posts: 1,884

Re: [Solved] Where to put shared data ?

Allan wrote:

or in /home

well - iirc there was a topic about using a folder in /home based on group permissions for shared data - it had various pros and cons but i can't remember if this got a "final" answer

Offline

#6 2026-01-03 22:47:25

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: [Solved] Where to put shared data ?

There's nothing special about /home - it's 755 like / or /srv ?
The special aspects would be that it's typically used for /home/$USER as $HOME (so sou're somewhat blocking $USER names) and (probably more relevant) that it's often not the / root partition (and significantly larger)

If you want to allow users to share data with others (and w/o ACLs) I'd go w/ bind-mounts out of their $HOME into some public path - allowing the user full control, restricting everyone else to read-only and the user can refine that via the GID
You'd have /srv typically used for data that's meant to leave the system, but if this is a strictly local host that doesn't run any server services and /srv is just an empty dir, I'd not see any reason not to use that as local server path.

@ReDress, did you reply to the wrong thread?

Offline

#7 2026-01-04 11:38:49

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,623

Re: [Solved] Where to put shared data ?

I'll definitely use bind mounts and/or ACLs but since https://bbs.archlinux.org/viewtopic.php?id=299394 I've become wary of opening /home/$USER to others.

/home/not-a-user/ though seems reasonable.

Some of the contents are shared with public systems, but contact is always initiated from the workstation.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2026-01-04 15:08:00

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,204

Re: [Solved] Where to put shared data ?

not sure if ACL can be used with network block devices https://github.com/NetworkBlockDevice/nbd/ but maybe if its possible then it could be an option.

In that case you can put a big hard drive disk into the work station and make it available as a network block device ? and grant the permissions with ACL for the users ? Not sure if both can work together to be honest but hey, maybe that could make you not spend money in the nas chest tongue


str( @soyg ) == str( @potplant ) btw!

Offline

#9 2026-01-09 16:52:37

ReDress
Member
From: Nairobi
Registered: 2024-11-30
Posts: 202

Re: [Solved] Where to put shared data ?

Succulent of your garden wrote:

not sure if ACL can be used with network block devices https://github.com/NetworkBlockDevice/nbd/ but maybe if its possible then it could be an option.

In that case you can put a big hard drive disk into the work station and make it available as a network block device ? and grant the permissions with ACL for the users ? Not sure if both can work together to be honest but hey, maybe that could make you not spend money in the nas chest tongue

DO Not. Own my threads

Offline

#10 2026-01-09 23:10:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,623

Re: [Solved] Where to put shared data ?

I've been busy converting my install to the new workstation and decided I prefer separation between things, so am keeping /data .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB