KSMBD: Difference between revisions

Pigs (talk | contribs)
m Add category filesystem and networking
Pigs (talk | contribs)
Remove nonexistent configuration options
 
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 <code>/var/lib/ksmbd</code> with guest login enabled.
 
<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>


[[Category:Filesystem]]
[[Category:Filesystem]]
[[Category:Networking]]
[[Category:Networking]]