1.2 KiB
1.2 KiB
Personal directories on /sf/bernina
/sf/bernina/config/personal/<username> is the Bernina convention for a
per-user directory on real, git-friendly NFS storage — unlike
~/network_drives (SMB), which can't hold a git repo (see
migrate_to_network_drive.md). The gopass guide (gopass.md) uses it for
a personal store clone that's automatically the same on every Bernina
host.
Usage
create_personal_dir.sh # create/verify your own directory
create_personal_dir.sh someuser # provision on someone else's behalf (needs root, or ask them to self-serve)
Safe to re-run — only changes what doesn't already match.
What it does
- Makes sure the shared parent (
/sf/bernina/config/personal/) is group-writable with the sticky bit set — like/tmp: anyone inunx-sf_bernina_bscan add their own subdirectory, but nobody can touch anyone else's. Offers to fix it (chmod 3775) if you own it and it isn't set up that way yet; only ever needs doing once, since/sf/berninais one NFS export shared by every Bernina host. - Creates (or verifies)
<username>'s own subdirectory, locked to2700— owner-only, nobody else can list or read into it even though the parent is browsable.