Samba 服务器不记录

Samba 服务器不记录

我尝试在 Samba 服务器中使用 Windows 进行登录,但无法连接。当我查看日志时,它显示以下消息

[2022/07/20 08:35:19.749737,  0] ../lib/param/loadparm.c:1844(lpcfg_do_service_parameter)
  Ignoring unknown parameter "plublic"
[2022/07/20 08:35:20.785155,  0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
  Unknown parameter encountered: "plublic"
[2022/07/20 08:35:20.785241,  0] ../lib/param/loadparm.c:1844(lpcfg_do_service_parameter)
  Ignoring unknown parameter "plublic"
[2022/07/20 08:35:34.675466,  0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
  Unknown parameter encountered: "plublic"
[2022/07/20 08:35:34.675534,  0] ../lib/param/loadparm.c:1844(lpcfg_do_service_parameter)
  Ignoring unknown parameter "plublic"

我没有找到有关此错误或这是什么的任何信息lpcfg。我​​尝试登录的计算机说不允许我登录服务器。

以下是 samba 的配置

[global]
        smb ports = 139
        log file = /var/log/samba/log.%m
        security = user
        dns proxy = No
        netbios name = MyServer
        server string = Compartilhamento
        name resolve order = lmhosts, host, wins, bcast
        wins support = yes
        cups options = raw
        load printers = yes
        workgroup = WORKGROUP
        os level = 100
        auto services = global
        interfaces = lo eth1 192.168.1.0/24
        hosts allow = 127. 192.168.1.
        passdb backend = tdbsam
        encrypt passwords = yes
        max log size = 250
        preferred master = Yes
        domain master = Yes
        domain logons = yes
        logon path = %Nprofiles%u
        syslog = 0
        invalid users = root
[MyServer]
        comment = Diretorio compartilhado
        path = /home/share
        public = yes
        writable = yes
        browseable = yes
        printable = no
        write list = +staff
        create mode = 0775
        directory mode = 0775
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = yes
        guest ok = yes
        plublic = yes
        writable = no
        printable = yes
        use client driver = yes

答案1

[printers]您的部分中似乎有一个错误,其中public拼写错误,plublic这很可能是您的日志消息的来源。

尝试修复该问题,然后重启 samba 服务后再次登录

相关内容