GSHSEC(8)
π GSHSEC(8) β the gshsec situation π
ok so bestie, welcome to the gshsec page (that's section 8 of the System Manager's Manual, mwah) π
β¨ NAME β¨
gshsec β the control utility for shared secret devices. yep, that's the whole vibe.
πΈ SYNOPSIS πΈ
gshsec label [-hv] name prov prov ...
gshsec stop [-fv] name ...
gshsec clear [-v] prov ...
gshsec dump prov ...
gshsec list
gshsec status
gshsec load
gshsec unload
π DESCRIPTION π
So gshsec sets up a device that holds a shared secret, and the way that works is that the secret is shared between the given providers. To actually collect the secret, you need all of the providers. Every single one. If one component is missing, there is literally no way to get any useful data out of the rest of them β not a crumb, not a byte π that's the whole point of it.
The first argument you hand to gshsec is the action you want performed:
labelβ set up a shared secret device from the given components, with the name you specify. Metadata lives in the last sector of every component. π«Άstopβ turn off an existing shared secret device by its name. heads up: this command does not touch on-disk metadata!clearβ clear the metadata on the given providers.dumpβ dump the metadata stored on the given providers.listβ seegeom(8).statusβ seegeom(8).loadβ seegeom(8).unloadβ seegeom(8).
π additional options π
-fβ force the removal of the specified shared secret device.-hβ hardcode the providers' names in the metadata.-vβ be more verbose (she's chatty, she tells you things π¬).
β EXIT STATUS β
Exit status is 0 on success, and 1 if the command fails. no in-between, we love a clean binary π
π¦ EXAMPLES π¦
ok so here's how you actually create a shared secret device. The secret gets split between a slice on a local disk and a USB Pen drive:
gshsec label -v secret /dev/ada0s1 /dev/da0
newfs /dev/shsec/secret
From now on, when the USB Pen drive is inserted, it will be automatically detected and connected, making the secret available via the /dev/shsec/secret device. iconic behaviour honestly πβ¨
π₯ SEE ALSO π₯
π HISTORY π
The gshsec utility appeared in FreeBSD 5.4. vintage, but make it slay π
π AUTHORS π
Pawel Jakub Dawidek <pjd@FreeBSD.org> β thank you for your service π«‘π
and that's the page, bestie! this little beauty is from the Debian gang, dated October 1, 2013 β so like, a whole era ago, but the info still eats πΈπ¦π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π the page's license: BSD-2-Clause
- Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms