Opensuse

安全=使用者時無法訪問

  • April 5, 2015

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

順便問一下 config 是否安全?我的意思是如果密碼在登錄時被加密。

我發現了一個問題。行security = users應該在之前map to guest = Bad User

引用自:https://serverfault.com/questions/680150