当 security=users 时无法访问

当 security=users 时无法访问

security = userssecurity = share一切正常时,我无法以匿名或 Linux 帐户访问文件。我的配置:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
[global]
    workgroup = WORKGROUP
    passdb backend = tdbsam
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = Yes
    security = share
    netbios name = DamianR
    host allow = 192.168.
    encrypt passwords = yes 
[homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes
    hide dot files = Yes
    create mask = 640
    directory mask = 640
    valid users = damian
[publiczny]
        comment = publiczny 
        inherit acls = Yes
        path = /home/damian/Publiczny
    available = yes
        browseable = yes
        writable = no
    read only = yes
        guest ok = yes 
    hide dot files = Yes

顺便问一下,我想问一下配置是否安全?我的意思是登录时密码是否加密。

答案1

我发现了一个问题。行security = users应该在之前map to guest = Bad User

相关内容