This is the official ksmbd
(ksmbd-server, ksmbd-utils) support thread. It can be found in snapshots and 19.07 or in my feed.
NOTE: Was named 'Cifsd' and 'Smbd' before, upstream renamed it to 'Ksmbd' !
ksmbd-server is a tiny Samba3/4 alternative, consisting of a kernel module
ksmbd.ko and a userspace service
The server is smb2/3 compatible and works like a Samba4 drop-in replacement. The
wsdd2 service will be compatible and a similar
luci-app-ksmbd will be available.
Keep in mind ksmbd has its own uci config and separate smb.conf paths (/etc/ksmbd/smb.conf). The actual init/smb.conf and uci config is very similar and should be easy to adapt from samba4.
Check the examples/helps in the
If needed a user database file (/etc/ksmbd/ksmbdpwd.db) can be created via installing
ksmbd-utils (smbuseradd), but is not needed in guest mode.
- tiny size: kernel module is a ~80kb ipk and the server is ~40kb, with deps its around 200kb total
- lower CPU usage, compared to Samba-4.11
- potentially faster speeds on low end devices
- no VFS modules support (no shadowcopy, macOS Timemachine support)
- not as fully tested as samba3/4, so bugs/problems may happen (we test since 9 months in snapshots)
- Just a simple fileserver, no AD-DC old netbios or other advanced samba4 options
- avahi support is missing atm (ksmbd-avahi-service is in snapshots now), so no discovery of the shares on Linux/MacOS (need to use hostname or ip via UNC path)
PS: Ksmbd and Samba4 can be installed simultaneously, but you need to disable one service, since both can not run at the same time, without using different smb ports aka 445!