Not working on 19.07.1 wrt1900acs. With samba4 stopped and disabled. Samba4 with was running well. Here's some detail info.
OpenWrt version:
BusyBox v1.30.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 19.07.1, r10911-c155900f66
-----------------------------------------------------
root@WRT1900ACS:~# uname -a
Linux WRT1900ACS 4.14.167 #0 SMP Wed Jan 29 16:05:35 2020 armv7l GNU/Linux
Tried to install but it prompts dependency error.
Installing luci-app-ksmbd (git-20.052.76937-657407f-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.1/packages/arm_cortex-a9_vfpv3/luci/luci-app-ksmbd_git-20.052.76937-657407f-1_all.ipk
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-ksmbd:
* kernel (= 4.14.167-1-a92a3f5c5bed2671533484c7ace9d5b5)
* opkg_install_cmd: Cannot install package luci-app-ksmbd.
Force installed it with following command.
root@WRT1900ACS:~# opkg install luci-app-ksmbd --force-depends
root@WRT1900ACS:~# opkg list_installed | grep ksmbd
kmod-fs-ksmbd - 4.14.167+3.1.1-1
ksmbd-avahi-service - 3.2.1-1
ksmbd-server - 3.2.1-1
ksmbd-utils - 3.2.1-1
luci-app-ksmbd - git-20.052.76937-657407f-1
Add user, also a system user was added.
root@WRT1900ACS:~# ksmbd.adduser -a yding
root@WRT1900ACS:~# id yding
uid=1000(yding) gid=1000(samba) groups=1000(samba)
ksmbd config.
root@WRT1900ACS:~# uci show ksmbd
ksmbd.@globals[0]=globals
ksmbd.@globals[0].workgroup='WORKGROUP'
ksmbd.@globals[0].description='WRT1900ACS'
ksmbd.@globals[0].interface='lan'
ksmbd.@globals[0].allow_legacy_protocols='1'
ksmbd.@share[0]=share
ksmbd.@share[0].create_mask='0744'
ksmbd.@share[0].dir_mask='0777'
ksmbd.@share[0].read_only='no'
ksmbd.@share[0].guest_ok='no'
ksmbd.@share[0].users='yding'
ksmbd.@share[0].name='nas'
ksmbd.@share[0].path='/mnt/nas'
Start ksmbd and see logs.
Sun Feb 23 16:01:52 2020 daemon.info ksmbd: Legacy Protocols allowed, don't use this option for secure environments!
Sun Feb 23 16:01:52 2020 daemon.notice ksmbd: Starting Ksmbd userspace service.
Sun Feb 23 16:01:52 2020 kern.err kernel: [ 82.130384] ksmbd: iface_exists:546: Device br-lan is down
Sun Feb 23 16:01:52 2020 kern.err kernel: [ 82.135922] ksmbd: ksmbd_tcp_set_interfaces:594: Unknown interface: br-lan
Dvice br-lan is up and running. SSH is actually though lan connection.
root@WRT1900ACS:~# ifconfig
br-lan Link encap:Ethernet HWaddr -hided-
inet addr:172.24.2.1 Bcast:172.24.2.255 Mask:255.255.255.0
inet6 addr: --hided--/60 Scope:Global
inet6 addr: --hided--/60 Scope:Global
inet6 addr: --hided--/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79218 errors:0 dropped:0 overruns:0 frame:0
TX packets:92130 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9101006 (8.6 MiB) TX bytes:74416870 (70.9 MiB)
Restart ksmbd and see logs.
Sun Feb 23 16:23:02 2020 daemon.notice ksmbd: Stopping Ksmbd userspace service.
Sun Feb 23 16:23:02 2020 daemon.info ksmbd: triggering kill_server
Sun Feb 23 16:23:02 2020 daemon.err ksmbd: module still loaded after kill_server?
Sun Feb 23 16:23:02 2020 kern.err kernel: [ 1352.378835] ksmbd: kill_server_store:437: kill command received
To see if process is running.
root@WRT1900ACS:~# ps | grep ksmbd
5559 root 1024 S /usr/sbin/ksmbd.mountd --n
5561 root 1052 S /usr/sbin/ksmbd.mountd --n
5568 root 1072 R grep ksmbd
To see if ksmbd is listening on port 445. Nothing.
root@WRT1900ACS:~# netstat -an | grep 445
root@WRT1900ACS:~#
Tried to unload kernel module manually. Failed.
root@WRT1900ACS:~# service ksmbd stop
root@WRT1900ACS:~# rmmod ksmbd
unloading the module failed
root@WRT1900ACS:~# lsmod | grep ksmbd
ksmbd 143360 0 [permanent]
Also tried reboot router. Still the same behavior.