samba 错误“NT_STATUS_LOGON_FAILURE”Ubuntu 22.04

samba 错误“NT_STATUS_LOGON_FAILURE”Ubuntu 22.04

我有一台全新的 Ubuntu 22.04 服务器,我正尝试使用 Nautilus 从 Ubuntu 22.04 桌面连接到它。Nautilus 继续提示输入用户名和密码,但未连接。在服务器本身上使用“smbclient -L localhost -U mless”会返回错误消息“NT_STATUS_LOGON_FAILURE”Samba 日志文件中没有消息

当前的设置

testparm输出

[global]
        client min protocol = NT1
        log file = /var/log/samba/log.%m
        logging = file
        map to guest = Bad User
        max log size = 1000
        obey pam restrictions = Yes
        pam password change = Yes
        panic action = /usr/share/samba/panic-action %d
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server min protocol = NT1
        server role = standalone server
        server string = %h server (Samba, Ubuntu)
        unix password sync = Yes
        usershare allow guests = Yes
        usershare max shares = 0
        idmap config * : backend = tdb

[homes]
        comment = Home Directories
        create mask = 0700
        directory mask = 0700

实际smb.conf文件

[homes]
        browseable = yes
        create mask = 0700
        comment = Home Directories
        directory mask = 0700

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

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

ufw status输出

Status: active

To                         Action      From
--                         ------      ----
10000/tcp                  ALLOW       Anywhere                  
22/tcp                     ALLOW       Anywhere                  
Samba                      ALLOW       Anywhere                  
10000/tcp (v6)             ALLOW       Anywhere (v6)             
22/tcp (v6)                ALLOW       Anywhere (v6)             
Samba (v6)                 ALLOW       Anywhere (v6)    

     

smbclient -L localhost -U mick

答案1

解决方案是使用 sudo smbpasswd -a user 设置用户密码 我不知道为什么将 linux 用户转换为 smaba 用户没有这样做。

为何删除了42个字符??

相关内容