>apt-get install samba
>vim /etc/samba/smb.conf
edit the following part:
workgroup = xx.com
security = share
guest account = nobody
[myshare]
comment = zhengyuan's share directory
browseable = yes
writeable = yes
guest ok = yes
path = /share
public = yes
[IPC$]
hosts allow = 165.112.x.x 10.0.x.x 192.168.x.x
hosts deny = 0.0.0.0/0
[IPC$]
hosts allow = 165.112.x.x 10.0.x.x 192.168.x.x
hosts deny = 0.0.0.0/0
No comments:
Post a Comment