Jump to content

KSMBD: Difference between revisions

From NixOS Wiki
Add ksmbd example
 
Pigs (talk | contribs)
Remove nonexistent configuration options
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://docs.kernel.org/next/filesystems/cifs/ksmbd.html KSMBD] is a linux kernel server which implements SMB3 protocol in kernel space for sharing files over network.
[https://docs.kernel.org/next/filesystems/cifs/ksmbd.html KSMBD] is a Linux kernel server which implements SMB3 protocol in kernel space for sharing files over network.


== Example configuration ==
Userspace utilities for the KSMBD kernel SMB server are provided by the {{nixos:package|ksmbd-tools}}.


The following example will create a read-only file share of <pre>/var/lib/ksmbd</pre> with guest login enabled.
[[Category:Filesystem]]
 
[[Category:Networking]]
<syntaxHighlight lang=nix>
{
  services.ksmbd.enable = true;
  services.ksmbd.openFirewall = true;
  services.ksmbd.shares.public = {
    path = "/var/lib/ksmbd";
    "read only" = true;
    browseable = "yes";
    "guest ok" = "yes";
    comment = "Public samba share.";
  };
}
</syntaxHighlight>

Latest revision as of 16:43, 21 September 2025

KSMBD is a Linux kernel server which implements SMB3 protocol in kernel space for sharing files over network.

Userspace utilities for the KSMBD kernel SMB server are provided by the ksmbd-tools.