1、安装samba
$ sudo apt-get install smbfs
$ sudo apt-get install cifs-utils
$ sudo chmod 777 WS_HOST
2、对 /etc/samba/smb.conf 进行修改
修改下面的项目,所有人均可访问
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = share
在配置文件最后面加
[Raspi]
path = /home/pi/dragon/WS_HOST
public = yes
writable = yes
重新启动samba
$ sudo /etc/init.d/samba restart
3、可以正确访问
4、用户访问
修改配置文件两处
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user
和
[Raspi]
path = /home/pi/dragon/WS_HOST
public = yes
writable = yes
vaild user = pi
重新启动samba
$ sudo /etc/init.d/samba restart
Linux下samba配置
原文:http://www.cnblogs.com/imapla/p/4420539.html