首页 > 系统服务 > 详细

linux 下文件夹共享

时间:2017-05-02 13:04:43      阅读:228      评论:0      收藏:0      [点我收藏+]
[root@localhost share]# yum install samba -y
[root@localhost share]# cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
[root@localhost share]# vi /etc/samba/smb.conf
#======================= Global Settings ===================================== [global] workgroup = WORKGROUP security = share map to guest = bad user #============================ Share Definitions ============================== [MyShare]
#修改为自己的共享路径 path = /share browsable =yes writable = yes guest ok = yes read only = no load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes

[root@localhost share]# chkconfig smb on  
[root@localhost share]# service smb start




在windows下访问\\IP就可以看见共享文件夹了
遇到无权限访问错误时将文件设为777权限
[root@localhost share]# chmod 777 /share

注意:以上为快捷配置存在安全隐患,物理机器不推荐使用。
 

 

linux 下文件夹共享

原文:http://www.cnblogs.com/zheh/p/6795346.html

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