首页 > 系统服务 > 详细

Linux下samba配置

时间:2015-04-12 22:34:58      阅读:361      评论:0      收藏:0      [点我收藏+]
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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!