码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下samba配置

时间:2015-04-12 22:35:29      阅读:209      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!