Samba 共享显示可用,但无法访问

Samba 共享显示可用,但无法访问

我在使用 Debian 的普通版本(技术上是 Raspbian,但与 Debian 并无太大区别)运行 Samba 共享时遇到了问题。Samba 日志给出了如下错误:

[2013/05/05 04:07:39.988912,  0] smbd/service.c:995(make_connection_snum)
  Can't become connected user!

这是我刚尝试通过执行操作来连接它的时候smbclient \\localhost\extrastorage(这给了我错误tree connect failed: NT_STATUS_LOGON_FAILURE。)

我知道它是可用的,因为我可以运行smbclient -L localhost并获得以下内容:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        extrastorage    Disk      Place to store stuff
        IPC$            IPC       IPC Service (raspberrypi server)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

        Server               Comment
        ---------            -------
        RASPBERRYPI          raspberrypi server

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

所以它显然在那里,而且密码也没有问题。

也许我的有问题smb.conf,但我没有看到:

[global]
        server string = %h server
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb


[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        print ok = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[extrastorage]
        comment = Place to store stuff
        path = /mnt/extrastorage
        valid users = pi
        admin users = pi
        guest ok = Yes

为何我无法浏览共享内容?

答案1

我刚才其实已经弄清楚了这个问题。我必须安装该软件包samba-common-bin并运行smbpasswd -a pi

相关内容