[Samba] smbclient failed --> NT_STATUS_BAD_NETWORK_NAME
Andy Smb
smb at dzti.edu.lv
Thu Aug 7 08:02:35 GMT 2008
I make all steps in the guide:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html#id2546028
but command (exetuded in the same computer where is samba):
smbclient //fc9/tester -Utester%test
gives error:
Domain=[DZTI] OS=[Unix] Server=[Samba 3.2.0-17.fc9]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
The user tester have been created by commands:
useradd tester
smbpasswd -a tester
I've followes some steps from the guide:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html
1 ---------------------------
[root at fc9 ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[share1]"
Processing section "[share2]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = WKG
netbios name = DZTI
hosts allow = ALL
[share1]
path = /tmp
[share2]
comment = Some random files
path = /my_shared_folder
2 ---------------------------
[root at fc9 ~]# ping fc9 -c 1
PING fc9 (127.0.0.1) 56(84) bytes of data.
64 bytes from fc9 (127.0.0.1): icmp_seq=1 ttl=64 time=0.024 ms
3 ---------------------------
[root at fc9 ~]# smbclient -L fc9
Enter root's password:
Anonymous login successful
Domain=[WKG] OS=[Unix] Server=[Samba 3.2.0-17.fc9]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba 3.2.0-17.fc9)
share2 Disk Some random files
share1 Disk
Anonymous login successful
Domain=[WKG] OS=[Unix] Server=[Samba 3.2.0-17.fc9]
Server Comment
--------- -------
DZTI Samba 3.2.0-17.fc9
Workgroup Master
--------- -------
T A308
WKG DZTI
4 ---------------------------
[root at fc9 ~]# nmblookup -B fc9 __SAMBA__
querying __SAMBA__ on 127.0.0.1
10.10.10.99 __SAMBA__<00>
5 ---------------------------
[root at fc9 ~]# nmblookup -B ACLIENT '*'
querying * on 10.10.10.255
10.10.10.99 *<00>
6 ---------------------------
[root at fc9 ~]# nmblookup -d 2 '*'
added interface eth0 ip=fe80::216:e6ff:fe31:e989%eth0
bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0:1 ip=10.10.10.99 bcast=10.10.10.255
netmask=255.255.255.0
added interface eth0 ip=85.254.228.99 bcast=85.254.228.255
netmask=255.255.255.0
querying * on 10.10.10.255
Got a positive name query response from 10.10.10.99 ( 10.10.10.99 )
10.10.10.99 *<00>
7 ---------------------------
[root at fc9 ~]# smbclient //fc9/TMP.
Enter root's password:
Anonymous login successful
Domain=[WKG] OS=[Unix] Server=[Samba 3.2.0-17.fc9]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
More information about the samba
mailing list