[Samba] Incorrect client netbios name in %m

Pelle Svensson pelle2004 at gmail.com
Thu Jan 2 10:40:06 MST 2014


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

Note that the old server works fine and if I explore Networks in Gnome it
works.

/Pelle


More information about the samba mailing list