KSMBD.ADDSHARE(8)
π KSMBD.ADDSHARE β the girlies' guide (8) π
okay so bestie, this is ksmbd.addshare, and it lives in the System Administration section of the manual. it's the little tool that sets up shares for ksmbd.conf(5), which is the config file for the ksmbd.mountd(8) daemon. let's get into it β¨
πΈ NAME πΈ
ksmbd.addshare β configure shares for ksmbd.conf of ksmbd.mountd
like. that's literally its whole job. she configures. she slays. π
π¦ SYNOPSIS π¦
ksmbd.addshare [-v] [-C CONF] [-P PWDDB] [-a | -u | -d] [-o OPT]... SHARE
look at her. one line. iconic. π
β¨ DESCRIPTION β¨
so ksmbd.addshare configures shares for the ksmbd.conf(5) configuration file that belongs to the ksmbd.mountd(8) user mode daemon. bestie that's the whole vibe.
β οΈ heads up though: ksmbd.addshare modifies ksmbd.conf in a way that does not retain its existing formatting. so like, your pretty hand-aligned comments? gone. she's doing a glow-up whether you asked or not. π
she can also parse the ksmbdpwd.db(5) user database so she can give you completions while prompting. thoughtful queen π«Ά
and when she's done, she notifies ksmbd.mountd of any changes she made. only if she actually made some, obviously.
also, big one: ksmbd.addshare will only make changes that do not require restarting ksmbd.mountd and ksmbd to take effect. so no dramatic restarts, just vibes. π
π OPTIONS π
quick note before we dive in: if you don't pass -a, -u, or -d, then she'll either add or update SHARE. and SHARE must be UTF-8 and [1, 64) bytes β so at least 1 byte, but strictly less than 64. and SHARE is case-insensitive. no cap. π
-a,--addβ add SHARE to the configuration file. new girl on the block β¨-u,--updateβ update SHARE in the configuration file. glow-up arc π-d,--deleteβ delete SHARE from the configuration file. she's gone, we don't talk about her π-o,--option=OPTβ use OPT as the share parameter instead of prompting. you can pass this one multiple times, so stack 'em up π-C,--config=CONFβ use CONF as the configuration file instead of/etc/ksmbd/ksmbd.conf. pick your own adventure π¦-P,--pwddb=PWDDBβ use PWDDB as the user database instead of/etc/ksmbd/ksmbdpwd.db. same energy, different file π-v,--verboseβ be verbose. give us the tea β-V,--versionβ output version information and exit. hi, who are you π-h,--helpβ display this help and exit. the girlies love a helper πΈ
π EXIT STATUS π
- exit status
0= success π₯³ - exit status
1= failure π
and lowkey important: failure to notify ksmbd.mountd of changes has no effect on the exit status. so like, she might not have told the daemon, but she's still claiming the 0. main character energy tbh.
π 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.
π«Ά translation for the besties: it's free, you can change it, you can share it, but there is literally NO WARRANTY to the extent permitted by law. so don't come for her.
π REPORTING BUGS π
found a bug? for bug reports, use the issue tracker at <https://github.com/cifsd-team/ksmbd-tools/issues>. tell them everything, they wanna know π
π SEE ALSO π
Configuration File
User Database
Utilities
and that's the whole page, bestie!! this was ksmbd-tools 3.5.7, and if you scrolled all the way down here β you're a real one. go forth and configure your shares. slay. periodt. πβ¨ππ¦
π¦ 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