Samba Linux Suse Enterprise 15 - 访问被拒绝

Samba Linux Suse Enterprise 15 - 访问被拒绝

我正在尝试设置桑巴舞在 Linux SuSE enterprise 15 环境中,但是当我尝试将 linux 共享映射到 Windows 时,会显示登录弹出窗口,每次登录时都会返回Access Denied.

下面是我的 smb.conf。从默认的 smb 开始,仅更改为:

  • 添加了unix字符集
  • 强制用户
  • 向客人评论地图。
[global]
    workgroup = WORKGROUP
    passdb backend = tdbsam
    unix charset = UTF-8
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    #map to guest = Bad User
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = Yes
[homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes
[profiles]
    comment = Network Profiles Service
    path = %H
    read only = No
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700
[users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/
[groups]
    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes
[printers]
    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No
[print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @ntadmin root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775
[testShare]
       #Shared Directory
       path = /home/oracle/messages
       #writable
       writable = yes
       #allow guest user
       guest ok = yes
       #guest only
       guest only = yes
       #fully accessed 
       create mode = 0777
       #fully accessed 
       directory mode = 0777
       #forceuser
       force user = HoeghSoaDev77

另外,我已经在linux中创建了用户并且桑巴舞。有什么建议吗?

> cat /ect/passwd

HoeghSoaDev77:x:xxxx:xxx::/home/HoeghSoaDev77:/bin/bash

> sudo pdbedit -L -v

[sudo] password for oracle:
---------------
Unix username:        HoeghSoaDev77

答案1

这是“共享”共享吗?那种“仅限来宾”的方式永远不会起作用,因为您已经在“全局”中关闭了来宾访问权限。

相关内容