tree connect failed: NT_STATUS_BAD_NETWORK_NAME

AlliumPorrum purjonloota1 at luukku.com
Tue Oct 23 17:07:38 GMT 2007


I´ve trying to get my Samba share to wok in CentOS 5 with the instructions
found from here:

http://samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html

As you can see below, if I list all shares with "smbclient -L", everything
seems to be okay. But when I try to connect the server with "smbclient", I
just get an error mentioned in the subject field. Could someone please tell
me what to do??


********************************************************
[xxx at localhost ~]$ smbclient -L localhost
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.23c-2.el5.2.0.2]

        Sharename       Type      Comment
        ---------       ----      -------
        jako            Disk      Yhteinen verkkojako
        system          Disk      Systeemi jako
        IPC$            IPC       IPC Service (Samba Server)
        xxx        Disk      Home Directories
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.23c-2.el5.2.0.2]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        WORKGROUP            LOCALHOST

[xxx at localhost ~]$ nmblookup -B localhost __SAMBA__
querying __SAMBA__ on 127.0.0.1
192.168.2.106 __SAMBA__<00>

[xxx at localhost ~]$ smbclient //localhost/jako
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.23c-2.el5.2.0.2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[xxx at localhost ~]$
********************************************************

Here is also my smb.conf:

********************************************************
        workgroup = WORKGROUP
        server string = Samba Server
        security = user
        hosts allow = 192.168.2.105  127.0.0.1 localhost
        cups options = raw
        log file = /var/log/samba/%m.log
        max log size = 50
        domain master = yes
        dns proxy = no
        username map = /etc/samba/smbusers
[homes]
        comment = Home Directories
        browseable = no
        writeable = yes
[jako]
        comment = Yhteinen verkkojako
        path = /home/jako
        writeable = yes
        valid users = xxx
[system]
        comment = Systeemi jako
        path = /home/system
        writeable = yes
        valid users = xxx
********************************************************
-- 
View this message in context: http://www.nabble.com/tree-connect-failed%3A-NT_STATUS_BAD_NETWORK_NAME-tf4678960.html#a13369084
Sent from the Samba - samba-technical mailing list archive at Nabble.com.



More information about the samba-technical mailing list