[global]
workgroup = SFAOFFICE 工作组名称
netbios name = zhuxuebuserver1 主机NetBIOS名称,每部主机不同
server string = Samba Server Version %v 主机的简易说明
log file = /var/log/samba/log.%m 日志文件存储的文件
max log size = 512 最大日志文件
security = user 使用SAMBA本身密码库
passdb backend = tdbsam 数据库格式
load printers = yes
cups options = raw 支持来自windows用户的打印作业
printcap name = cups
printing = cups 与上面这两个在告知使用cups打印系统
unix charset = utf8 Linux服务器上使用的编码
dos charset = cp936 Windows客户端的编码
map to guest = bad user
[homes]
# comment = Home Directories 仅是这个目录的说明
# path = /home/guest 共享名称进入的Linux目录
# browseable = yes 让所有用户看到这个内容
# read only = no
# guest ok = no 不允许用户随意登录
[printers]
comment = HL5340D 说明打印机型号
path = /var/spool/samba 默认把来自SAMBA的打印作业暂时放置的队列
browseable = yes 允许外界浏览
guest ok = yes 允许访客
writable = yes 允许写入
printable = yes 允许打印
[guest]
comment = public 目录的简要说明
path = /home/guest
hosts allow = 192.168.1.65 192.168.1.66 192.168.1.67 192.168.1.68 \
192.168.1.69 192.168.1.70 59.78.22.38 允许使用SAMBA
create mode = 0777
directory mode = 0777
browseable = yes
read only = no
guest ok = no
#valid users = printer
vfs objects = recycle
recycle:repository = /home/guest/RecycleBin
recycle:drectory_mode = 0777
recycle:subdir_mode=0777
recycle:keeptree = yes
recycle:touch_mtime = no
[personal]
comment = personal files 个人文件
path = /home/guest/个人文件
create mode = 0777 文件权限777
directory mode = 0777 目录权限775
read only = no 允许写入
guest ok = no 不允许无帐号登录
valid users= printer zhuxuebu 写入者包括哪些人
看到另外一个很好的帖子,linux学习
workgroup = SFAOFFICE 工作组名称
netbios name = zhuxuebuserver1 主机NetBIOS名称,每部主机不同
server string = Samba Server Version %v 主机的简易说明
log file = /var/log/samba/log.%m 日志文件存储的文件
max log size = 512 最大日志文件
security = user 使用SAMBA本身密码库
passdb backend = tdbsam 数据库格式
load printers = yes
cups options = raw 支持来自windows用户的打印作业
printcap name = cups
printing = cups 与上面这两个在告知使用cups打印系统
unix charset = utf8 Linux服务器上使用的编码
dos charset = cp936 Windows客户端的编码
map to guest = bad user
[homes]
# comment = Home Directories 仅是这个目录的说明
# path = /home/guest 共享名称进入的Linux目录
# browseable = yes 让所有用户看到这个内容
# read only = no
# guest ok = no 不允许用户随意登录
[printers]
comment = HL5340D 说明打印机型号
path = /var/spool/samba 默认把来自SAMBA的打印作业暂时放置的队列
browseable = yes 允许外界浏览
guest ok = yes 允许访客
writable = yes 允许写入
printable = yes 允许打印
[guest]
comment = public 目录的简要说明
path = /home/guest
hosts allow = 192.168.1.65 192.168.1.66 192.168.1.67 192.168.1.68 \
192.168.1.69 192.168.1.70 59.78.22.38 允许使用SAMBA
create mode = 0777
directory mode = 0777
browseable = yes
read only = no
guest ok = no
#valid users = printer
vfs objects = recycle
recycle:repository = /home/guest/RecycleBin
recycle:drectory_mode = 0777
recycle:subdir_mode=0777
recycle:keeptree = yes
recycle:touch_mtime = no
[personal]
comment = personal files 个人文件
path = /home/guest/个人文件
create mode = 0777 文件权限777
directory mode = 0777 目录权限775
read only = no 允许写入
guest ok = no 不允许无帐号登录
valid users= printer zhuxuebu 写入者包括哪些人
看到另外一个很好的帖子,linux学习