Files
operation-bin/create_personal_dir.md
T
lemke_h f677ec82cf
Autodeploy / autodeploy (push) Successful in 9s
additionas
2026-09-05 13:08:27 +02:00

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

  1. Makes sure the shared parent (/sf/bernina/config/personal/) is group-writable with the sticky bit set — like /tmp: anyone in unx-sf_bernina_bs can 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/bernina is one NFS export shared by every Bernina host.
  2. Creates (or verifies) <username>'s own subdirectory, locked to 2700 — owner-only, nobody else can list or read into it even though the parent is browsable.