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