[share]
path = /home/share/
writeable = yes
browseable = yes
create mask =
directory mask =
guest ok = yes
public = yes
[homes]
common = Home Directories
browseable = yes
read only = yes
create mask =
directory mask =
valid user =%S
配置文件: /etc/samba/smb.conf
[share]:配置公共访问,不需登录,均可读写,\\IP\share\
[homes]:配置私有访问,使用用户名密码登录,\\IP\{user_name}\