该帐户无权从此站登录

该帐户无权从此站登录

我正在使用。我可以从和&Samba Version-4.1.6-Ubuntu正常连接到它。安装后我立即收到消息Mac OS 10.xWin 88.1Win 10 technical previewThe account is not authorized to log in from this station.

我已经完成/尝试了以下操作:

- Rebooted the client
- Rebooted the server
- Upgraded all the packages on the server
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters\enablesecuritysignature 1
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters\requiresecuritysignature 0
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\enablesecuritysignature 1
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\requiresecuritysignature 0

smb配置文件

[global]
    log file = /var/log/samba/log.%m
    log level = 1
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully*$
    obey pam restrictions = yes
    socket options = TCP_NODELAY IPTOS_THROUGHPUT
    map to guest = bad user
    encrypt passwords = true
    passwd program = /usr/bin/passwd %u
    passdb backend = tdbsam
    dns proxy = no
    netbios name = Mainframe
    server string = %h server (Samba, Ubuntu)
    default = media
    unix password sync = yes
    workgroup = WORKGROUP
    os level = 20
    security = user
    lanman auth = yes
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
    usershare allow guests = yes
    max log size = 1000
    pam password change = yes

 [media]
    browseable = yes
    writeable = yes
    path = /data/media
    write list = comma,separated,users
    valid users = comma,separated,users
    force create mode = 777
    force user = a-username
    user = comma,separated,users

答案1

通过创建一个与我在 Windows 10 中使用的用户名相同的 smb 用户来“解决”这个问题。如果我设置与我在 Windows 中使用的密码相同的密码,samba 共享不会要求输入密码。否则,它会要求输入密码,但我使用其他用户登录。或者您可以注释掉以下行:映射到访客 = 坏用户并且它会正常工作。

相关内容