ksmbd: update documentation
Subsystems (3)
Namjae Jeon
maintainerPATCH v2 1/1 ksmbd: update documentation
configuration.txt in ksmbd-tools moved to ksmb.conf manpage. update it and more detailed ksmbd-tools build method.
---
v2:
- rename smb.conf to ksmbd.conf.
- add how to set ksmbd module in menuconfig
- remove --syscondir option for configure, instead change ksmbd directory to /usr/local/etc/ksmbd.
- change the prompt to '$'.
Documentation/filesystems/cifs/ksmbd.rst | 32 ++++++++++++++++-------- 1 file changed, 22 insertions(+), 10 deletions(-)
Documentation/filesystems/cifs/ksmbd.rst +22 -10
@@ -118,24 +118,36 @@ ksmbd/nfsd interoperability Planned for future. The features that ksmbd How to run ========== -1. Download ksmbd-tools and compile them. - - https://github.com/cifsd-team/ksmbd-tools +1. Download ksmbd-tools(https://github.com/cifsd-team/ksmbd-tools/releases) and compile them. + - Refer README(https://github.com/cifsd-team/ksmbd-tools/blob/master/README.md) + to know how to use ksmbd.<foo> utils + + $ ./autogen.sh + $ ./configure --with-rundir=/run + $ make && sudo make install 2. Create user/password for SMB share. + - See ksmbd.adduser manpage. + + $ man ksmbd.adduser + $ sudo ksmbd.adduser -a <Enter USERNAME for SMB share access> - # mkdir /etc/ksmbd/ - # ksmbd.adduser -a <Enter USERNAME for SMB share access> +3. Create /usr/local/etc/ksmbd/ksmbd.conf file, add SMB share in smb.conf file. + - Refer ksmbd.conf.example in ksmbd-utils, See ksmbd.conf manpage + for details to configure shares. -3. Create /etc/ksmbd/smb.conf file, add SMB share in smb.conf file - - Refer smb.conf.example and - https://github.com/cifsd-team/ksmbd-tools/blob/master/Documentation/configuration.txt + $ man ksmbd.conf -4. Insert ksmbd.ko module +4. Insert ksmbd.ko module after build your kernel. + - Set ksmbd in menuconfig(e.g. $ make menuconfig) + [*] Network File Systems ---> + <M> SMB server support - # insmod ksmbd.ko + $ sudo insmod ksmbd.ko 5. Start ksmbd user space daemon - # ksmbd.mountd + + $ sudo ksmbd.mountd 6. Access share from Windows or Linux using CIFS
Signature · 1 line
2.25.1
Quoted 5 lines · Namjae Jeon
configuration.txt in ksmbd-tools moved to ksmb.conf manpage. update it and more detailed ksmbd-tools build method.
Signed-off-by Namjae Jeon <[email protected]>
Tom Talpey
reviewerQuoted 20 lines · Namjae Jeon
configuration.txt in ksmbd-tools moved to ksmb.conf manpage. update it and more detailed ksmbd-tools build method.
Signed-off-by Namjae Jeon <[email protected]>---
v2:
- rename smb.conf to ksmbd.conf.
- add how to set ksmbd module in menuconfig
- remove --syscondir option for configure, instead change ksmbd directory to/usr/local/etc/ksmbd.
- change the prompt to '$'.Documentation/filesystems/cifs/ksmbd.rst | 32 ++++++++++++++++-------- 1 file changed, 22 insertions(+), 10 deletions(-)Documentation/filesystems/cifs/ksmbd.rst +0
-0
Documentation/filesystems/cifs/ksmbd.rst ksmbd/nfsd interoperability Planned for future. The features that ksmbd · line 123
Quoted 8 lines
Documentation/filesystems/cifs/ksmbd.rst +3
-2@@ -118,24 +118,36 @@ ksmbd/nfsd interoperability Planned for future. The features that ksmbd How to run ========== -1. Download ksmbd-tools and compile them. - - https://github.com/cifsd-team/ksmbd-tools +1. Download ksmbd-tools(https://github.com/cifsd-team/ksmbd-tools/releases) and compile them. + - Refer README(https://github.com/cifsd-team/ksmbd-tools/blob/master/README.md) + to know how to use ksmbd.<foo> utils
I suggest typing out "<foo>" to include mountd, adduser and addshare.
Quoted 4 lines
Documentation/filesystems/cifs/ksmbd.rst +4
-0+ + $ ./autogen.sh + $ ./configure --with-rundir=/run + $ make && sudo make install
Documentation/filesystems/cifs/ksmbd.rst ksmbd/nfsd interoperability Planned for future. The features that ksmbd · line 135
Quoted 10 lines
Documentation/filesystems/cifs/ksmbd.rst +5
-22. Create user/password for SMB share. + - See ksmbd.adduser manpage. + + $ man ksmbd.adduser + $ sudo ksmbd.adduser -a <Enter USERNAME for SMB share access> - # mkdir /etc/ksmbd/ - # ksmbd.adduser -a <Enter USERNAME for SMB share access> +3. Create /usr/local/etc/ksmbd/ksmbd.conf file, add SMB share in smb.conf file.
Typo - "ksmbd.conf" -------------------------------------------------^
Wouldn't the ksmbd.addshare command be a safer way to do this?
Documentation/filesystems/cifs/ksmbd.rst ksmbd/nfsd interoperability Planned for future. The features that ksmbd · line 137
Quoted 2 lines
Documentation/filesystems/cifs/ksmbd.rst +2
-0+ - Refer ksmbd.conf.example in ksmbd-utils, See ksmbd.conf manpage + for details to configure shares.
This way is fine too, but as an alternative for power users.
Documentation/filesystems/cifs/ksmbd.rst ksmbd/nfsd interoperability Planned for future. The features that ksmbd · line 141
Quoted 8 lines
Documentation/filesystems/cifs/ksmbd.rst +2
-4-3. Create /etc/ksmbd/smb.conf file, add SMB share in smb.conf file - - Refer smb.conf.example and - https://github.com/cifsd-team/ksmbd-tools/blob/master/Documentation/configuration.txt + $ man ksmbd.conf -4. Insert ksmbd.ko module +4. Insert ksmbd.ko module after build your kernel.
Can't ksmbd be built-in as well?
Documentation/filesystems/cifs/ksmbd.rst ksmbd/nfsd interoperability Planned for future. The features that ksmbd · line 152
Quoted 13 lines
Documentation/filesystems/cifs/ksmbd.rst +6
-2+ - Set ksmbd in menuconfig(e.g. $ make menuconfig) + [*] Network File Systems ---> + <M> SMB server support - # insmod ksmbd.ko + $ sudo insmod ksmbd.ko 5. Start ksmbd user space daemon - # ksmbd.mountd + + $ sudo ksmbd.mountd 6. Access share from Windows or Linux using CIFS
"SMB2 or SMB3" ----------------------------------^
Tom.
Namjae Jeon
maintainer2022-09-07 2:09 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 26 lines · Namjae Jeon
Quoted 25 lines
configuration.txt in ksmbd-tools moved to ksmb.conf manpage. update it and more detailed ksmbd-tools build method.
Signed-off-by Namjae Jeon <[email protected]>---
v2:
- rename smb.conf to ksmbd.conf.
- add how to set ksmbd module in menuconfig
- remove --syscondir option for configure, instead change ksmbd directory to/usr/local/etc/ksmbd.
- change the prompt to '$'.Documentation/filesystems/cifs/ksmbd.rst | 32 ++++++++++++++++-------- 1 file changed, 22 insertions(+), 10 deletions(-)Documentation/filesystems/cifs/ksmbd.rst +0
-0@@ -118,24 +118,36 @@ ksmbd/nfsd interoperability Planned for future.The features that ksmbd
How to run
==========
Quoted 10 lines
Quoted 8 lines
-1. Download ksmbd-tools and compile them.
Documentation/filesystems/cifs/ksmbd.rst +1
-1- - https://github.com/cifsd-team/ksmbd-tools +1. Downloadksmbd-tools(https://github.com/cifsd-team/ksmbd-tools/releases) and compile them.
+ - Refer
README(https://github.com/cifsd-team/ksmbd-tools/blob/master/README.md)
+ to know how to use ksmbd.<foo> utilsI suggest typing out "<foo>" to include mountd, adduser and addshare.
Okay.
Quoted 12 lines
Quoted 12 lines
Documentation/filesystems/cifs/ksmbd.rst +8
-0+ + $ ./autogen.sh + $ ./configure --with-rundir=/run + $ make && sudo make install 2. Create user/password for SMB share. + - See ksmbd.adduser manpage. + + $ man ksmbd.adduser + $ sudo ksmbd.adduser -a <Enter USERNAME for SMB share access>
Quoted 6 lines
Quoted 4 lines
Documentation/filesystems/cifs/ksmbd.rst +1
-2- # mkdir /etc/ksmbd/ - # ksmbd.adduser -a <Enter USERNAME for SMB share access> +3. Create /usr/local/etc/ksmbd/ksmbd.conf file, add SMB share in smb.conffile.
Typo - "ksmbd.conf" -------------------------------------------------^
Will fix it.
Quoted 2 lines
Wouldn't the ksmbd.addshare command be a safer way to do this?
ksmbd.addshare can't update global section now. So I thought it seems appropriate to edit ksmbd.conf directly in the initial running. If you still need to add, please let me know.
Quoted 5 lines
Documentation/filesystems/cifs/ksmbd.rst ksmbd/nfsd interoperability Planned for future. The features that ksmbd · line 137
Quoted 3 lines
Documentation/filesystems/cifs/ksmbd.rst +2
-0+ - Refer ksmbd.conf.example in ksmbd-utils, See ksmbd.conf manpage + for details to configure shares.This way is fine too, but as an alternative for power users.
Okay, I understood that there is no more update and sound fine.
Quoted 8 lines
Quoted 8 lines
-3. Create
/etc/ksmbd/smb.conffile, add SMB share in smb.conf fileDocumentation/filesystems/cifs/ksmbd.rst +0
-2- - Refer smb.conf.example and -https://github.com/cifsd-team/ksmbd-tools/blob/master/Documentation/configuration.txt
+ $ man ksmbd.conf
Quoted 4 lines
Quoted 2 lines
-4. Insert ksmbd.ko module
+4. Insert ksmbd.ko module after build your kernel.Can't ksmbd be built-in as well?
Probably add this comment for this.
4. Insert ksmbd.ko module (no need to load module if ksmbd is built
into the kernel)
Quoted 8 lines
Quoted 8 lines
Documentation/filesystems/cifs/ksmbd.rst +4
-1+ - Set ksmbd in menuconfig(e.g. $ make menuconfig) + [*] Network File Systems ---> + <M> SMB server support - # insmod ksmbd.ko + $ sudo insmod ksmbd.ko
Quoted 8 lines
Documentation/filesystems/cifs/ksmbd.rst ksmbd/nfsd interoperability Planned for future. The features that ksmbd · line 152
Quoted 6 lines
5. Start ksmbd user space daemon
Documentation/filesystems/cifs/ksmbd.rst +2
-1- # ksmbd.mountd + + $ sudo ksmbd.mountd 6. Access share from Windows or Linux using CIFS"SMB2 or SMB3" ----------------------------------^
Okay, Will update like this.
SMB3 client (cifs.ko or smbclient of samba)
Thanks for your review!
Quoted 3 lines
Tom.
Tom Talpey
reviewerQuoted 5 lines · Namjae Jeon
2022-09-07 2:09 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 4 lines · Namjae Jeon
Quoted 2 lines
+3. Create
/usr/local/etc/ksmbd/ksmbd.conffile, add SMB share in smb.conf file.
Quoted 7 lines
Quoted 1 line
Typo - "ksmbd.conf" -------------------------------------------------^
Will fix it.
Quoted 2 lines
Wouldn't the ksmbd.addshare command be a safer way to do this?
ksmbd.addshare can't update global section now. So I thought it seems appropriate to edit ksmbd.conf directly in the initial running. If you still need to add, please let me know.
I'm confused. If ksmbd.addshare can't add a share, what can it do?
Tom.
Namjae Jeon
maintainer2022-09-08 21:50 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 8 lines · Namjae Jeon
Quoted 7 lines
2022-09-07 2:09 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 6 lines · Namjae Jeon
Quoted 3 lines
+3. Create
/usr/local/etc/ksmbd/ksmbd.conffile, add SMB share in smb.conf
file.Typo - "ksmbd.conf" -------------------------------------------------^
Quoted 8 lines
Quoted 6 lines
Will fix it.
Quoted 2 lines
Wouldn't the ksmbd.addshare command be a safer way to do this?
ksmbd.addshare can't update global section now. So I thought it seems appropriate to edit ksmbd.conf directly in the initial running. If you still need to add, please let me know.
I'm confused. If ksmbd.addshare can't add a share, what can it do?
It can only add/delete/update the share section.
Quoted 3 lines
Tom.
Tom Talpey
reviewerQuoted 11 lines · Namjae Jeon
2022-09-08 21:50 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 10 lines · Namjae Jeon
Quoted 9 lines
2022-09-07 2:09 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 6 lines · Namjae Jeon
Quoted 3 lines
+3. Create
/usr/local/etc/ksmbd/ksmbd.conffile, add SMB share in smb.conf
file.Typo - "ksmbd.conf" -------------------------------------------------^
Will fix it.
Quoted 1 line
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Wouldn't the ksmbd.addshare command be a safer way to do this?
ksmbd.addshare can't update global section now. So I thought it seems appropriate to edit ksmbd.conf directly in the initial running. If you still need to add, please let me know.
I'm confused. If ksmbd.addshare can't add a share, what can it do?
It can only add/delete/update the share section.
I still don't get it. A share section is just a section that starts with [foo] where "foo" is not "global", right? And if ksmbd.addshare can add one, why can't it be used in the example?
Tom.
Namjae Jeon
maintainer2022-09-09 5:39 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 17 lines · Namjae Jeon
Quoted 16 lines
2022-09-08 21:50 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 15 lines · Namjae Jeon
Quoted 13 lines
2022-09-07 2:09 GMT+09:00, Tom Talpey <[email protected]>:
Quoted 6 lines · Namjae Jeon
Quoted 3 lines
+3. Create
/usr/local/etc/ksmbd/ksmbd.conffile, add SMB share in smb.conf
file.Typo - "ksmbd.conf" -------------------------------------------------^
Will fix it.
Quoted 2 lines
Wouldn't the ksmbd.addshare command be a safer way to do this?
ksmbd.addshare can't update global section now. So I thought it seems appropriate to edit ksmbd.conf directly in the initial running. If you still need to add, please let me know.
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
I'm confused. If ksmbd.addshare can't add a share, what can it do?
It can only add/delete/update the share section.
I still don't get it. A share section is just a section that starts with [foo] where "foo" is not "global", right? And if ksmbd.addshare can add one, why can't it be used in the example?
What I'm trying to say is that users who see this how to run section are new to ksmbd. And ksmbd.addshare is created to add the share while ksmbd is running with smb.conf already configured. For initial setting, smb.conf including global section should be edited, but guiding the use of ksmbd.addshare that cannot add global seciton may cause confusion.
Quoted 3 lines
Tom.