Linux下samba配置

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
 
 
 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。