怎样配置smb.conf

基本配置如下
[global]
netbios name = yourname (netbios名字,在网上邻居里显示)
workgroup = yourworkgroup (工作组名字)
server string = yourstring (描述)
guest account = nobody (匿名浏览的用户属性)
log file = /var/log/samba/log.%m (以用户名区分的log文件)
security = share (用于普通的浏览,相当于windows里的共享级配置)
encrypt passwords = yes (用于windows客户机登录,windows使用加密密码。)
[home]
comment = yourcomment (描述)
path = /home/samba (通常是这样的,没必要一样)
browseable = no (不允许浏览)
writeable = no (不可写)
[public]
comment = yourcomment (描述)
path = /home/samba/public (路径)
browseable = yes (允许浏览)
writeable = no (不可写)
guest ok = yes (允许匿名客户访问)
pubilic = yes (同上)
[leon]
comment = Leon's private zone
path = /home/leonqin
browseable = yes
writeable = yes
guest account = leonqin

注意最后是一个私有共享,必须使用smbadduser添加该用户:
#smbadduser leonqin:leonqin (前面是netbios用户名,后面是UNIX用户名)