Annick
November 11, 2023, 9:58am
1
Is there something special with samba4?
The configuration is the same as with an old MT300N-V3 with kernel 4.14.151 and samba & I have no problem for reading the contents of a USB key with Windows 11
Windows Explorer see the samba4 server well
Manually with \IP\ this doesn't work either -> no access
With the console i have no problem for ls /mnt/sda1
default template is not modified
Annick
November 11, 2023, 1:48pm
3
root@BELKIN-180:/# ls -ld /mnt/sda1
drwxr-xr-x 2 root root 160 Nov 11 11:44 /mnt/sda1
frollic
November 11, 2023, 1:49pm
4
shouldn't be the issue, got I'd chmod 777 /mnt/sda1.
Annick
November 11, 2023, 1:53pm
5
chmod 777 /mnt/sda1/* -R
no change
with the old MT300N-V2
if I not plug USB key I still see the USB sharing in Windows Explorer
sure no content !!!
with samba4 nothing
frollic
November 11, 2023, 2:18pm
6
Annick:
chmod 777 /mnt/sda1/* -R
no change
Well, its not the same as what I wrote, but OK...
Annick
November 11, 2023, 2:20pm
7
MT300N-V2 run in relayd mode
i program the RT1800 in relayd mode at this time
in relay mode problem request login & password
Annick
November 12, 2023, 1:06pm
8
Which would have a configuration of the template file which works without it being used by a specific user therefore with any user
It seemed to me that this was the default configuration.with samba3
Annick
November 12, 2023, 2:04pm
10
Solved with Windows GPedit -> WorkStation Lanman ->
it would be interesting to know how we can export/import this parameter
found solution:
Create with GPedit
Copy for future folder C:\Windows\System32\GroupPolicy
After restore folder & reboot
frollic
November 12, 2023, 8:13pm
11
huh ?
it's a windows setting...
Annick
November 13, 2023, 8:05am
12
*
What I don't understand is why it works with my old MT300 & samba 3
Firmware OpenWrt Version SNAPSHOT r11365-df60a0852c / LuCI Master (git-19.304.35036-4798b3f)
Kernel Version 4.14.151
and not with the CR25Wing as well as the RT1800 Belkin
Firmware Version OpenWrt 23.05.0 r23497-6637af95aa / LuCI openwrt-23.05 branch git-23.306.39416-c86c256
Kernel Version 5.15.134
I'm really starting to wonder if all the security stuff means that the newer it is, the worse openwrt works
frollic
November 13, 2023, 8:25am
13
because samba3 <> samba4 ?
can always try ksmbd ,,,
Annick
November 13, 2023, 10:03am
14
I just tried ksmbd
Observations:
Explorer is much faster than with samba4
I still have to use gpedit for it to work like with samba4
I have real NAS: QNAP TBS453A as well as Synology DS218+ and I have never had any problems
Also good with an USB key connected to my Livebox 6
There is definitely something wrong with OpenWrt
frollic
November 13, 2023, 10:16am
15
then you can start comparing the gl.inet samba3 with openwrt samba4 settings, see if you can spot the difference.
I too have several devices completely unrelated to openwrt, where it just works.
openwrt provides a samba4 package, it doesn't maintain it, you're barking up the wrong tree, imho.
openwrt's samba4 config could be off, though.
can this be reproduced on a vanilla Linux, where you replace samba3 with samba4, or the other way around ?
Annick
November 13, 2023, 10:27am
16
These are just observations
Otherwise I have already had comments like:
If you find that it works poorly, just don't use OpenWrt!!!
Now if that doesn't bother anyone..
frollic
November 13, 2023, 10:27am
17
I just installed samba4, mapped a dir, and made sure legacy SMB 1.0 support was disabled.
no issues whatsoever.
samba4 is a resource hog, the performance (throughput) can be pretty bad, especially if multi core support isn't enabled. again, not openwrt's fault.
Annick
November 13, 2023, 4:36pm
18
Question: Are you using the default samba4 configuration ?
frollic
November 13, 2023, 5:01pm
19
Yes, I am.
Installed, created dir, configured share, done.
Annick
November 14, 2023, 11:28am
20
I will therefore consider that even if we can get samba4 to work ( gpedit used with windows ) that it is too slow
For ksmbd you must also use gpedit with recent versions of OpenWrt