Package Details: ksmbd-tools 3.5.3-1

Git Clone URL: https://aur.archlinux.org/ksmbd-tools.git (read-only, click to copy)
Package Base: ksmbd-tools
Description: Userspace tools for the ksmbd kernel SMB server
Upstream URL: https://github.com/cifsd-team/ksmbd-tools
Keywords: cifs cifsd ksmbd samba smb smbd
Licenses: GPL2
Provides: samba
Submitter: jpegxguy
Maintainer: jpegxguy
Last Packager: jpegxguy
Votes: 15
Popularity: 0.146840
First Submitted: 2021-04-21 15:56 (UTC)
Last Updated: 2024-12-06 22:39 (UTC)

Dependencies (2)

Required by (64)

Sources (1)

Latest Comments

1 2 3 Next › Last »

grawity commented on 2024-12-12 10:23 (UTC)

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

It seems that in version 3.5.3 there is now a runtime kerberos support = option, so it should be fine to build with --enable-krb5 always.

jpegxguy commented on 2024-05-04 16:35 (UTC)

I will look into updating the package and also the libexec comment by ZhangHua. Honestly this should be official, not in the AUR. ksmbd has been in the kernel for a WHILE now. I'll see if we can contact a Trusted Member or something

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: https://wiki.archlinux.org/title/Arch_package_guidelines#Package_etiquette

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,13 +15,11 @@ sha256sums=("d7b27313c3e40c1272776d0bbc5672363dff0f1cad9286d6450f4907907685b9")
 build() {
        cd "${pkgname}-${pkgver}"
        ./autogen.sh
-       ./configure --prefix=/usr --with-rundir=/run
+       ./configure --prefix=/usr --with-rundir=/run --sbindir=/usr/bin --sysconfdir=/etc
        make
 }

 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 https://github.com/database64128/ksmbd-tools/tree/nl-skb-size-3.4.5.

The workaround is being discussed at https://github.com/cifsd-team/ksmbd-tools/pull/277. 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)

@database64128

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)

@fow0ryl:

  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 https://aur.archlinux.org/packages/ksmbd-module-meta to provide KSMBD-MODULE.