From: Tom Talpey <tom@talpey.com>
To: Namjae Jeon <linkinjeon@kernel.org>, linux-cifs@vger.kernel.org
Cc: smfrench@gmail.com, hyc.lee@gmail.com, senozhatsky@chromium.org,
atteh.mailbox@gmail.com
Subject: Re: [PATCH v2] ksmbd: update documentation
Date: Tue, 6 Sep 2022 13:09:39 -0400 [thread overview]
Message-ID: <356b6557-fa62-b611-8ef2-df9ca10a28c7@talpey.com> (raw)
In-Reply-To: <20220906015823.12390-1-linkinjeon@kernel.org>
On 9/5/2022 9:58 PM, Namjae Jeon wrote:
> configuration.txt in ksmbd-tools moved to ksmb.conf manpage.
> update it and more detailed ksmbd-tools build method.
>
> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
> ---
> 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(-)
>
> diff --git a/Documentation/filesystems/cifs/ksmbd.rst b/Documentation/filesystems/cifs/ksmbd.rst
> index 1af600db2e70..69d4a4c3313b 100644
> --- a/Documentation/filesystems/cifs/ksmbd.rst
> +++ b/Documentation/filesystems/cifs/ksmbd.rst
> @@ -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.
> +
> + $ ./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.
Typo - "ksmbd.conf" -------------------------------------------------^
Wouldn't the ksmbd.addshare command be a safer way to do this?
> + - 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.
>
> -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?
> + - 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.
next prev parent reply other threads:[~2022-09-06 17:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 1:58 [PATCH v2] ksmbd: update documentation Namjae Jeon
2022-09-06 2:04 ` Sergey Senozhatsky
2022-09-06 17:09 ` Tom Talpey [this message]
2022-09-06 23:46 ` Namjae Jeon
2022-09-08 12:50 ` Tom Talpey
2022-09-08 14:28 ` Namjae Jeon
2022-09-08 20:39 ` Tom Talpey
2022-09-09 0:08 ` Namjae Jeon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=356b6557-fa62-b611-8ef2-df9ca10a28c7@talpey.com \
--to=tom@talpey.com \
--cc=atteh.mailbox@gmail.com \
--cc=hyc.lee@gmail.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=senozhatsky@chromium.org \
--cc=smfrench@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox