Sunday, December 16, 2012

A simple example for samba share

The following example will show you how to set up a share folder, allowing public access by everybody without password.

>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

>service samba restart

No comments:

Post a Comment