Package Details: ksmbd-tools 3.5.1-1

Git Clone URL: (read-only, click to copy)
Package Base: ksmbd-tools
Description: Userspace tools for the ksmbd kernel SMB server
Upstream URL:
Keywords: cifs cifsd ksmbd samba smb smbd
Licenses: GPL2
Provides: samba
Submitter: jpegxguy
Maintainer: jpegxguy
Last Packager: jpegxguy
Votes: 13
Popularity: 0.27
First Submitted: 2021-04-21 15:56 (UTC)
Last Updated: 2023-11-12 14:13 (UTC)

Dependencies (2)

Required by (59)

Sources (1)

Latest Comments

1 2 3 Next › Last »

ZhangHua commented on 2024-04-10 11:47 (UTC) (edited on 2024-04-10 13:55 (UTC) by ZhangHua)

Please set --libexecdir=/usr/lib/$pkgname in configure. Arch Linux do not use /usr/libexec.

See also:

Also, could you consider enabling krb5 support? You can achieve this by adding krb5 into depends and add --enable-krb5 in configure arguments.

Edit: It seems that enabling krb5 is not a good idea because we cannot use local username/password to login.

enihcam commented on 2022-12-04 11:11 (UTC)

when will this package be adopted by official repository? it has been a year since KSMB is introduced in LTS kernel (5.15), and the next TLS (6.1) is coming.

jpegxguy commented on 2022-10-13 07:29 (UTC) (edited on 2022-10-13 07:40 (UTC) by jpegxguy)

Yeah don't worry I've seen the communication. The flags got added today, I just had work stuff.

database64128 commented on 2022-10-13 05:57 (UTC) (edited on 2022-10-13 06:21 (UTC) by database64128)

Please apply the following change to specify the correct config and bin paths.

diff --git a/PKGBUILD b/PKGBUILD
index 3e2901e..60cf82d 100644
@@ -15,13 +15,11 @@ sha256sums=("d7b27313c3e40c1272776d0bbc5672363dff0f1cad9286d6450f4907907685b9")
 build() {
        cd "${pkgname}-${pkgver}"
-       ./configure --prefix=/usr --with-rundir=/run
+       ./configure --prefix=/usr --with-rundir=/run --sbindir=/usr/bin --sysconfdir=/etc

 package() {
        cd "${pkgname}-${pkgver}"
        make DESTDIR="${pkgdir}" install
-       mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"

If you'd like me to commit the change, feel free to add me as a co-maintainer.

database64128 commented on 2022-10-12 06:45 (UTC)

ksmbd-tools /usr/etc/
ksmbd-tools /usr/etc/ksmbd/
ksmbd-tools /usr/etc/ksmbd/ksmbd.conf.example

database64128 commented on 2022-08-28 13:48 (UTC)

If anyone's seeing intermittent worker process crashes like:

ksmbd[910]: [ksmbd-worker/910]: ERROR: Recv() error Out of memory [-5]
ksmbd[909]: [ksmbd.mountd/909]: ERROR: WARNING: child process exited abnormally: 910
ksmbd[909]: [ksmbd.mountd/909]: ERROR: Fatal IPC error. Terminating. Check dmesg.
ksmbd[909]: [ksmbd.mountd/909]: ERROR: can't execute kill 910: No such process
ksmbd[909]: [ksmbd.mountd/909]: INFO: Exiting. Bye!

I have a simple fix to work around the issue by raising the netlink socket buffer size. The patch for 3.4.5 can be found at

The workaround is being discussed at While it does seem to work, the ksmbd maintainer raised some concerns about memory usage on embedded devices, and is looking for a better solution.

jpegxguy commented on 2022-08-23 19:34 (UTC) (edited on 2022-08-23 19:34 (UTC) by jpegxguy)


Both linux and linux-lts started providing KSMBD-MODULE a few weeks ago, after I pinged the maintainer in the Arch Matrix group.

You're the reason it got added? Nice

database64128 commented on 2022-08-23 17:42 (UTC)


  1. Arch does not have a "recommended" kernel.
  2. Both linux and linux-lts started providing KSMBD-MODULE a few weeks ago, after I pinged the maintainer in the Arch Matrix group.
  3. You can use my meta package to provide KSMBD-MODULE.

fow0ryl commented on 2022-08-23 17:35 (UTC)

Adding KSMBD-MODULE as dependency was a poor idea, for all users not using the latest kernel...

When using i.e. the recommended kernel 5.15.nn there is no "provides KSMBD-MODULE" . This requires changing to 5.19 kernel to fullfil the dependency :(

lucsansag commented on 2022-08-22 09:41 (UTC)

Great, it works now, thanks!