Closed invis-z closed 4 months ago
Thanks for your report:) Can you check if this problem do not happen with samba ?
It doesn't happen on samba. I was migrating the same share from samba, which worked fine with the same root path.
[ShareName]
path = /mnt/ShareName
valid users =
comment =
browseable = yes
writeable = yes
printable = no
guest ok = no
read only = no
create mask = 664
Note: I was using different credentials, and logging in as linuxuser
directly so permission isn't different here.
Okay, Can you check this patch ? https://github.com/namjaejeon/ksmbd/commit/ddb1df1c215172e63aef8ed1cb20985e0f1d1590
Yes, the problem is gone with the patch! Thanks!
Thanks for your check:) I will apply this patch to the mainline and github ksmbd.
The patch seems was accepted by upstream and issue was fixed after upgrading to kernel 6.9.7-1-default
for openSUSE Tumbleweed (rolling release so it probably was fixed in earlier kernels already). Closing. Thanks!
If the directory name in the root of the share starts with character like 镜(0x955c) or Ṝ(0x1e5c), it (and anything inside) cannot be accessed. Other directory in the same share is accessible, including the one starts with 尒(0x5c12).
Probably related to code here: https://github.com/namjaejeon/ksmbd/blob/999cee7cc044a9a803e040020dc2385c18779190/smb2pdu.c#L2941-L2947
Distro: openSUSE Tumbleweed Kernel:
6.9.3-1-default
ksmbd-tools
: 3.5.2-1.1Share config (linuxuser uid=1000 gid=1000):
smb debug log: