ksmbdpwd.db5
The user database for ksmbd.mountd
Overview
ksmbdpwd.db is the user database for ksmbd.mountd(8) user mode daemon. ksmbd.adduser(8) may be used for configuring users for ksmbdpwd.db. ksmbd.adduser notifies ksmbd.mountd of changes, if it had made any, by sending the SIGHUP signal to ksmbd.mountd. ksmbd.control --reload can be used for notifying ksmbd.mountd of changes when not using ksmbd.adduser. ksmbdpwd.db is expected to be at /etc/ksmbd/ksmbdpwd.db by default.
File format
ksmbdpwd.db consists of users separated by newlines. Each user consists of a name and a password, in that order, separated by a colon (:). The name must be UTF-8 and [1, 48) bytes. The password is created from the user-input UTF-8 password, [0, 129) bytes, by converting it to UTF-16LE, then MD4-hashing it, and finally Base64-encoding and padding it.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.