求解:tree connect failed: NT_STATUS_BAD_NETWORK_NAME

火星人 @ 2014-03-04 , reply:0


求解:tree connect failed: NT_STATUS_BAD_NETWORK_NAME

剛做的SMB出問題了,在本機上測試:
# smbclient -L localhost -U user01
Password:
Domain= OS= Server=
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

testparm檢查正常
smb.conf 如下:

############################## Global Parameters ############################

        workgroup = Domain
        netbios name = smbsrv
        server string = Samba Server %v
        log file = /var/log/samba/log.%m
        security = user
        encrypt passwords = Yes
        obey pam restrictions = No
        ldap passwd sync = Yes
        log level = 3
        syslog = 0
        max log size = 100000
        time server = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        mangling method = hash2
        Dos charset = UTF-8
        Unix charset = UTF-8
        logon script = %U.bat
        logon drive = H:
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        passdb backend = ldapsam:ldap://192.168.0.181/
        ldap admin dn = cn=Manager,dc=ldapsmb,dc=com
        ldap suffix = dc=ldapsmb,dc=com
        ldap group suffix = ou=Groups
        ldap user suffix = ou=Users
        ldap machine suffix = ou=Computers
        ldap ssl = off
        ldap delete dn = no
        add user script = /usr/sbin/smbldap-useradd -m "%u"
        add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u"
        add group script = /usr/sbin/smbldap-groupadd -p "%g"
        add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
#      delete user from group script /usr/sbin/smbldap-groupmod -x "%u" "%g"
        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
        vfs object = vscan-clamav
        vscan-oav: config-file = /etc/samba/vscan-clamav.conf

############################## Homes parameters ##########################

        comment = repertoire de %U, %u
        browseable = no
        writeable = yes
        read only = no
        force create mode = 0700
        create mode = 0700
        force directory mode = 0700
        directory mode = 700
        vfs object = recycle
        recycle:keeptree = yes
        recycle:versions = yes
        recycle:repository = ../recycle/%U
        recycle:exclude = .tmp|.temp|.o|.obj

############################# Netlogone parameters #######################

        path = /opt/netlogon/
        browseable = No
        read only = yes

############################# Public parameters ##########################

        comment = Public Directory
        path = /opt/public/
        browseable = No
        writable = yes
        guest ok = yes
        create mask = 0777

############################# IT parameters ##########################

        comment = IT Directory
        path = /opt/Department/IT/
        browseable = No
        writable = yes
        guest ok = yes
        create mask = 0777

請大家幫幫忙。。
《解決方案》

你有建成立SAMBA用戶嗎?



[火星人 via ] 求解:tree connect failed: NT_STATUS_BAD_NETWORK_NAME已經有112次圍觀

http://www.coctec.com/docs/service/show-post-24328.html