Jump to content

KSMBD: Difference between revisions

From Official NixOS Wiki
fix markup
Pigs (talk | contribs)
m Add category filesystem and networking
Line 18: Line 18:
}
}
</syntaxHighlight>
</syntaxHighlight>
[[Category:Filesystem]]
[[Category:Networking]]

Revision as of 18:03, 18 May 2025

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

Example configuration

The following example will create a read-only file share of /var/lib/ksmbd with guest login enabled.

{
  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.";
  };
}