[Samba] Fwd: Incorrect client netbios name in %m

Andrew Bartlett abartlet at samba.org
Sun Jan 5 18:04:46 MST 2014


On Thu, 2014-01-02 at 19:05 +0100, Pelle Svensson wrote:
> I found the problem.
> Incorrect hostname on client.
> hostname can't be fully qualified when calling samba 4.1.3
> 
> ---------- Forwarded message ----------
> From: Pelle Svensson <pelle2004 at gmail.com>
> Date: Thu, Jan 2, 2014 at 6:40 PM
> Subject: Incorrect client netbios name in %m
> To: samba at lists.samba.org
> 
> 
> 
> I have a client (Fedora 19) and a server (Fedora 14/Samba 3.5.11) which
> works fine.
> I'm now setting up a new server (Fedora 20/Samba 4.1.3) with more or less
> the same smb.conf
> 
> 1. Issuing:
> sudo smbclient -L //srv001 -U suser
> list all shares correct.
> 
> 2. Issuing:
> sudo mount -t cifs //srv/Share3 /mnt/share3/ -o username=suser
> Password for suser@//srv/Share3:  ****
> Retrying with upper case share name
> mount error(6): No such device or address
> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
> 
> My problem is the Clients netbios name in smb.conf
> At following line in smb.conf:
> include = /etc/samba/include/smb.conf.per-machine.%m
> 
> %m include file
> /etc/samba/include/smb.conf.per-machine.fedora_f19
> 
> In the first case 'smbclient' (1) I see all shares including the one in
> 'per-machine.fedora_f19'
> 
> But in when I issue 'mount -t cifs' (2) I can only use share from smb.conf.
> 'per-machine.fedora_f19' is not included.
> The reason for that that there is a differens in the netbios name:
> 
> >From 'smbclient' (1) -> netbios name is: fedora_f19
> >From 'mount -t cifs' (2) -> netbios name is: fedora_f19.domain

It is entirely up to the client as to what it sends in this string.

This string is also not available if the client connects with kerberos
over port 445.

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba






More information about the samba mailing list