Files
felhom.eu/documentation/audits/logins-folders-2026-10-16/P1b
admin ea8e67f341
gates / gates (push) Successful in 7m4s
Logins and folders (controller 0.320.0 released): design, R-1100..R-1102 opened, STATUS, evidence, report
02 "Logins and folders" [DESIGN]: an infra stack is part of the box on the app page; one login answer per
installed app (catalog app_info.login_kind); FileBrowser's new-password press (its CLI, server stopped);
"Fájlok ↗" and the per-drive media folders, a folder with no source is text. Register 176 -> 179.
STATUS: look at FileBrowser, RomM and Plex on demo-hp; say yes for the N100's press; decision D10 (R-1102).

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 15:53:12 +02:00
..

P1b — resetting FileBrowser's admin password WITHOUT the old one (spike, demo-hp guest 9201 only, 2026-10-16)

Verdict: a safe reset exists. Built.

The mechanism, read at the pinned tag

gtstef/filebrowser:1.5.6-stable = gtsteffaniak/filebrowser tag v1.5.6-stable (5d9b4df).

  • CLI filebrowser set -u <user>,<password> -c <config> — backend/cmd/cli.go:60-67 (the flag set), :117-126 (dispatch), :206-269 setUser: an existing user gets user.Password = password, its TOTP secret cleared, and store.Users.Save(user, true, false) (hashes the password). It needs NO old password.
  • It opens the database with storm.Open(path) (backend/database/storage/storage.go:26) with no timeout: while the server runs, the bolt lock is held and the CLI would wait forever. So the server is STOPPED for the CLI, and the CLI runs in a one-shot container with the running container's volumes (docker run --rm --volumes-from filebrowser).
  • Not chosen: FILEBROWSER_ADMIN_PASSWORD / auth.adminPassword (backend/common/settings/config.go:923-926, applied in backend/cmd/user.go:50-57 validateUserInfo) — it re-applies on EVERY start (R-513 measured the same on 1.3.3), so it would need a compose change plus two recreates, and the value would sit in the container env.

Measured (spike-step1.txt, spike-step2.txt, spike-step3.txt, spike-cleanup.txt; script fbspike.sh)

  1. State operator, password unknown (R-513 left it 2026-09-15). A DB backup copied first.
  2. Reset to K1 with the server stopped: CLI rc 0, „successfully updated user", healthy 7 s after the stop; K1 → 200.
  3. A test user and a test share made as K1 (user 201, share 200). Settings hash 12a6170ac405fa72.
  4. Reset to K2 without K1: K2 → 200, K1 → 401, admin/admin → 401; users admin + fbspike, the share, and the settings hash unchanged.
  5. Test user and share deleted (200/200).

Passwords were generated on DooPlex (16 letters and digits — never a comma, which the CLI's user,password form would split on), sent as files (0600), used from files, and never printed. The CLI carries the password on its command line for about one second inside the guest; this is the only exposure and it is inside the household's own box.

After the spike demo-hp's FileBrowser password is K2 (kept out-of-band in the session scratchpad) and the controller still records operator — the built button replaces it (Part 1b build).