Samba 服务配置文件

发布于: 2006年12月07日

搬家自原blog:http://blog.linuxsky.net/2993
原地址:http://blog.linuxsky.net/2993/viewspace_2205.html

今天配置完成了samba服务,记录配置文件如下,一遍以后查询
smb.conf文件内容:

[global]
workgroup = sinomos
server string = E3 Samba Server |  Powered by Simon
log file = /var/log/samba/%m.log
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[printers]
[photope]
comment = photo pe share disk
path = /home/photope
public = no
valid users = photope
write list = photope
printable = no
[etchpe]
comment = etch pe share disk
path = /home/etchpe
public = no
valid users = @etchpe
write list = etchpe
printable = no
[public]
comment = Public File Directory
path = /home/samba
public = yes
writable = yes

添加所需用户到samba:

#smbpasswd -a photope
#smbpasswd -a etchpe

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

浙ICP备18056264号-1