samba 安全共享 && 用户

samba 安全共享 && 用户

这是我的 smb.conf:

[global]
workgroup = myworkgroup
netbios name = mercurio
server string = fileServer
security = share
map to guest = Bad User

[Share]
comment = Carella di condivisione globale
path = /home/share
guest ok = yes
public = yes
writable = yes

每个人都可以读写访问此文件夹,这是可以的。现在我需要与某些用户共享另一个文件夹。我想我必须更改安全选项,但它位于全局部分!

还有一些其他问题。这里是配置:

[安全折叠]
评论 = 安全文件夹
路径=/home/安全
有效用户 = ignazioc

但从我的 Mac 上我看到了这条消息http://dl.dropbox.com/u/31437518/Screen%20Shot%202012-02-10%20at%2015.50.15.png (找不到文件)这是文件夹

drwxrwxrwx 4 ignazioc ignazioc 4096 2 月 10 日 09:39 安全/

答案1

我用这个配置解决了它:

[global]
   # allow hosts = 127.0.0.1 192.168.1.0/24
    workgroup = debianizzati
    server string = [email protected]
    security = user
    guest account = ospite
    map to guest = Bad User
    #username map = /etc/samba/utenti.map
    netbios name = debianizzati
    #netbios aliases = alias1 ... aliasN
    #include = /etc/samba/smb.conf.%L

    #passwd program = /bin/passwd %u
    #pam password change = yes
    #obey pam restrictions = yes
    #passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuc$
    #unix password sync = Yes

[condivisione]
path = /home/utente1
        valid users = utente1
        read only = no
        guest ok = no

[condivisione 2]
path = /home/share
guest ok = yes
read only = no

相关内容