标签:pool host tar 文件夹共享 blog table workgroup security cap
[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
注意:以上为快捷配置存在安全隐患,物理机器不推荐使用。
标签:pool host tar 文件夹共享 blog table workgroup security cap
原文地址:http://www.cnblogs.com/zheh/p/6795346.html