Pakete: Konto mdnsbridge mit IDs unter 2000 (#64) #65
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/account-ids"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #64.
OPNsense löscht Benutzer und Gruppen mit IDs 2000–65000, die nicht in seiner
config.xmlstehen.pwhatte der Gruppemdnsbridgedie GID 2000 gegeben. Nach einem Firmware-Update fehlte die Gruppe, und der Daemon startete nicht mehr (install: unknown group mdnsbridge).Änderungen
libexec/mdns-bridged-accountmdnsbridgemit ID 803 an. Ist 803 belegt, nimmt es die nächste freie ID bis 999. 803 ist in den UIDs- und GIDs-Listen des Ports-Tree frei.mdns-bridge.toml, das PSK-Verzeichnis und das PSK an die Gruppe zurück, aber nur, wenn sie noch die alte oder gar keine gültige Gruppe haben.post-install, ersetzt das bisherigepre-install. Läuft nur auf dem Live-System.packaging/freebsd/tests/account_test.shläuft mit einem Stub fürpwundchgrpin CI.Getestet
shunddash, alle Fälle grün; shellcheck ohne Befund.Danach folgt Release 0.1.3 / Plugin 1.0.3.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Vh6img4RYU1F52VUwGJcrp
OPNsense deletes users and groups with IDs 2000-65000 that are not in its config.xml when it syncs accounts (e.g. on a firmware update). pw handed out GID 2000, so the group vanished and the daemon no longer started ("install: unknown group mdnsbridge", #64). New helper libexec/mdns-bridged-account, run by post-install (instead of the old pre-install) and by the rc script before every start: creates user and group with ID 803 (or the next free one up to 999), moves existing accounts with IDs >= 2000, and hands config, PSK and its directory back to the group if they still carry the old or no group. Tested with a pw stub in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh6img4RYU1F52VUwGJcrp