这里从网吧的电影服务器弄出来的,没做任何的修改和注释;
仅供参考!
这种例子相对比较多!我贴些实际应用的!
至于samba的安装和配置,不在这里累赘!!!!
 
[global]
null passwords = yes
bind interfaces only = yes
#interfaces = eth0
hosts allow = 192.168.1.0/24  192.168.2.0/24 127.0.0.1
map to guest = Bad Password
encrypt passwords = yes
stat cache size = 256
server string = movie server
getwd cache = yes
workgroup = work
#shared mem size = 2097152
protocol = NT1
netbios name = movie
socket options = TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768
read size = 65536
security = share
os level = 36
auto services = global mvsrv
#host msdfs = yes
veto files = /*.eml/*.new/*.nws/readme.exe/*.dll/
guest account = nobody
[Movies]
    read list = nobody,@nobody
    valid users = nobody,@nobody
    writable = no
    path = /data/raid
    write list = update,@update
    public = yes
[Music]
    read list = nobody,@nobody
    valid users = nobody,@nobody
    writable = no
    path = /data/music/
    write list = update,@update
    public = yes
[Tools]
    read list = nobody,@nobody
    valid users = nobody,@nobody
    writable = no
    path = /data/tools
    write list = update,@update
    public = yes
;[update]
;    read list = update,@update
;    valid users = update,@update
;    writable = yes
;    path = /data
;    write list = update,@update
;    public = yes
;    veto files = /*.eml/*.new/*.nws/readme.exe/