KSMBDPWD.DB(5)
πΎ KSMBDPWD.DB β the ksmbd user database, bestie
okay so this page is about ksmbdpwd.db, which lives in section 5 (File Formats and Conventions, the β¨vibesβ¨ section, iykyk). Let's get into it π«Ά
β¨ NAME β¨
ksmbdpwd.db β the user database for ksmbd.mountd
πΈ DESCRIPTION πΈ
So ksmbdpwd.db is, like, the user database for the ksmbd.mountd(8) user mode daemon. That's the whole thing. It's the little book of users πβ¨
And listen β you don't have to hand-edit it! ksmbd.adduser(8) is right there to configure users for ksmbdpwd.db for you. Iconic. π
Here's the cute part: if ksmbd.adduser actually made any changes, it notifies ksmbd.mountd by sending it the SIGHUP signal. Like a little "hey bestie, heads up, something changed π". And if you're not using ksmbd.adduser? No problem, you can use ksmbd.control --reload to notify ksmbd.mountd of changes instead. Two paths, both slay.
By default, ksmbdpwd.db is expected to be at /etc/ksmbd/ksmbdpwd.db. That's home. π
π FILE FORMAT π
okay so the format is genuinely so simple, no cap:
ksmbdpwd.db consists of users separated by newlines. That's it. One user per line, newline between them.
Each user consists of a name and a password, in that order, separated by a colon (:). So it's giving... name:password. Periodt.
Now the rules, and these are the real ones so pay attention π₯
- The name must be UTF-8 and
[1, 48)bytes. So at least 1 byte, and less than 48 bytes. Not 48. Less than 48. - The password is created from the user-input UTF-8 password, which is
[0, 129)bytes, by:- converting it to
UTF-16LE, - then
MD4-hashing it, - and finally
Base64-encoding and padding it.
- converting it to
That's the whole pipeline. Convert β hash β encode β pad. Chef's kiss. πβ¨
heads up: that's a description of how the stored password is derived, bestie β don't go inventing your own scheme, just let ksmbd.adduser(8) do it.
π 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. (like, none. zero. nada. π)
π REPORTING BUGS π
Found a bug? For bug reports, use the issue tracker at <https://github.com/cifsd-team/ksmbd-tools/issues>. Do not suffer in silence, bestie, the maintainers wanna know π«Ά
π SEE ALSO π
Utilities
and that's the whole page, bestie!! π this one is from ksmbd-tools 3.5.7, manual page KSMBDPWD.DB(5) β go forth and configure your users, you absolute main character ππ¦πΈ
π¦ 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