KSMBD.ADDUSER(8)
π KSMBD.ADDUSER β the manual, but make it cute π
okay so bestie, you're reading KSMBD.ADDUSER(8), a System Administration page, and honestly? it's giving "I manage users for a living and I'm thriving." let's get into it π
β¨ NAME β¨
ksmbd.adduser β configure users for ksmbdpwd.db of ksmbd.mountd
like that's literally the whole job. user management. slay. π
πΈ SYNOPSIS πΈ
ksmbd.adduser [-v] [-P PWDDB] [-C CONF] [-a | -u | -d] [-p PWD] USER
look at her. so structured. so iconic. β¨
π¦ DESCRIPTION π¦
okay so ksmbd.adduser configures users for the ksmbdpwd.db(5) user database that belongs to the ksmbd.mountd(8) user mode daemon. that's the whole vibe π«Ά
here's the smart part, no cap: ksmbd.adduser can parse the ksmbd.conf(5) configuration file so it can guard against deletion of users that are depended on. meaning it's not gonna let you delete somebody the config still needs. protective king behavior fr fr π
and when it actually makes changes, ksmbd.adduser notifies ksmbd.mountd about them. communication! healthy relationship! we love to see it π
π OPTIONS π
okay so first things first, if you don't give it neither -a, -u, nor -d β like none of them at all β it'll either add or update USER. dealer's choice, she decides. π
and some rules about USER, because there are always rules:
USERmust be UTF-8 and[1, 48)bytes. yes that's a half-open interval bestie, the 48 is NOT included. πUSERcannot contain a colon (:). just don't.
now the actual flags, one by one, no skipping:
-a,--addβ addUSERto the user database. new friend acquired β¨-u,--updateβ updateUSERin the user database. glow-up time π-d,--deleteβ deleteUSERfrom the user database. we don't talk about them anymore π«-p,--password=PWDβ usePWDas the user password instead of prompting.PWDmust be UTF-8 and[0, 129)bytes β yeah, 129 not included, and yes it can be zero bytes, that's a whole thing π-P,--pwddb=PWDDBβ usePWDDBas the user database instead of/etc/ksmbd/ksmbdpwd.db. custom location, main character energy π-C,--config=CONFβ useCONFas the configuration file instead of/etc/ksmbd/ksmbd.conf. yep, another path swap π¦-v,--verboseβ be verbose. she will yap (affectionately) π£οΈ-V,--versionβ output version information and exit. bye! π-h,--helpβ display this help and exit. also bye! π
π₯ EXIT STATUS π₯
the exit status is 0 on success and 1 on failure. simple. binary. she doesn't do nuance β¨
and here's the lowkey important bit: failure to notify ksmbd.mountd of changes has no effect on exit status. so like, if the notifying part flops, the exit status does not care. it's unbothered. π
π COPYRIGHT π
Copyright Β© 2015-2022 ksmbd-tools contributors.
License GPLv2: GNU GPL version 2 <https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
(read that last one again bestie, NO WARRANTY, capital letters, they meant it π)
π REPORTING BUGS π
found a bug? for bug reports, use the issue tracker at <https://github.com/cifsd-team/ksmbd-tools/issues>.
go tell them, they wanna know, fr fr π«Ά
π SEE ALSO π
User Database
Configuration File
Utilities
and that's the whole page bestie!! this was ksmbd-tools 3.5.7, manual page KSMBD.ADDUSER(8), and yes the date and version live down here at the bottom like a little signature. go add some users, you're gonna ate πβ¨π
π¦ where this page comes from
- nixpkgs unstable: ksmbd-tools 3.5.7
- ubuntu stonking: ksmbd-tools 3.5.7-1 Β· GPL-2-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms