I've seen this problem on all the clients I've tried. Some examples
include Windows 10 (when running "net use \\SERVER\SHARE") and Bionic
clients (with smbclient 4.7.6+dfsg~ubuntu-0ubuntu2.24 when running e.g.
smbclient -L //SERVER)
I also see this with smbclient as distributed to the Focal test server
I've been using to investigate this problem (currently running smbclient
4.13.14+dfsg-0ubuntu0.20.04.2). I'll stick with that Focal client for
debugging purposes. When I use "include=/data/config/%i/shares" in the
server config, I see:
# smbclient -L //localhost -U guest
Enter WORKGROUP\guest's password:
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (smbtest server (Samba, Ubuntu))
i.e. I don't see the share I've configured. If I instead
"include=/data/config/$IP/share" where $IP is the literal IP address of the
server, then:
# smbclient -L //localhost -U guest
Enter WORKGROUP\guest's password:
Sharename Type Comment
--------- ---- -------
alt36 Disk
IPC$ IPC IPC Service (smbtest server (Samba, Ubuntu))
i.e. the share I've defined in the included file becomes visible.
I've now set log level=10 on the server's smb.conf. The attached zip
contains log.smbd.good and log.smbd.bad which are the server logs that
arise from running smbclient -L as described above (and correspond,
respectively, to using a static string for 'include' versus using %i).
Note that log.smbd.bad reports "Can't find include file
/data/config/0.0.0.0/shares"
** Attachment added: "logs.zip"
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1952633/+attachment/5544756/+files/logs.zip
** Changed in: samba (Ubuntu)
Status: Incomplete => New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1952633
Title:
%i token does not expand on 4.13.14+dfsg-0ubuntu0.20.04.2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1952633/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs