安装samba:
sudo apt-get install samba
修改samba配置:
sudo nano /etc/samba/smb.conf
修改内容如下
去掉 security = user 前#
在 map to guest = bad user 行下添加 guest account = pi
共享目录方法(匿名访问读写)
[Code]
comment = Code
path = /home/pi/code
browseable = Yes
read
only = No
guest ok = Yes
[WWW]
comment = Web
path = /var/www
browseable = Yes
read only =
No
guest ok = Yes
重启samba:
sudo service samba restart
原文:http://www.cnblogs.com/wjne/p/3753803.html