QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1122|回复: 3

如何为SMBA设置多个共享目录???

[复制链接]
发表于 2005-3-18 22:42:32 | 显示全部楼层 |阅读模式
如何为SMBA设置多个共享目录???谢谢
 楼主| 发表于 2005-3-19 11:20:37 | 显示全部楼层
我知道是在smba.conf里的[public]段里,但不知道格式应该怎样写!急@@

path=/dir1:/dir2:/dir3?????????
path=/dir1;/dir2;/dir3????????
path-/dir1
path=/dir2
path=/dir3
?????????????????????
回复

使用道具 举报

 楼主| 发表于 2005-3-25 15:20:29 | 显示全部楼层
如下面:


[global]
    display charset = CP936
    encrypt passwords = yes
    dos filetime resolution = yes
    printing = cups
    security = share
    # = =========================== Share Definitions ==============================
    dns proxy = no
    # passdb backend = smbpasswd / tdbsam / ldapsam:ldap://ldap-server
    log file = /var/log/samba/log.%m
    passdb backend = smbpasswd
    workgroup = OFFICE
    null passwords = yes
    # use password server option only with security = server
    server string = Samba Server
    nt acl support = no
    dos charset = CP936
    unix charset = GB18030
    max log size = 50
    netbios name = YORK
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    dos filetimes = yes
    # workgroup = NT-Domain-Name or Workgroup-Name
    #共享目录的设置
[Download]
    comment =
    writeable = no
    guest ok = yes
    path = "/root/Download"
    guest account = root
    valid users = root
[Mail]
    comment =
    writeable = no
    guest ok = yes
    path = "/root/Mail"
    guest account = root
    valid users = root
[York]
    comment =
    writeable = no
    guest ok = yes
    path = "/root/York"
    guest account = root
    valid users = root
回复

使用道具 举报

发表于 2005-3-25 17:31:54 | 显示全部楼层
你可以在看置顶的贴,有详细的说明
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-6 08:02 , Processed in 0.063991 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表