samba共享

1 安装samba。

①安装命令:yum -y install samba 

②修改配置文件 /etc/samba/smb.conf

添加共享目录

[tomcatShare]

path = /usr/local/tomcat/webapps

read only = no

public   = yes

guest ok = yes

create mask = 0777

force create mask = 0777

扫描二维码关注公众号,回复: 399261 查看本文章

directory mask = 0777

force directory mask = 0777

[global]设置 

workgroup = WORKGROUP

server string = Samba Server Version %v

;netbios name = MYSERVER

;interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 

hosts allow = 127. 192.168.10. 192.168.13.

2

启动服务:smb start

重启服务:service smb restart

3 关闭防火墙

.vim /etc/sysconfig/selinux ,修改为:SELINUX=disabled并且SELINUXTYPE=disabled

重启iptables:/etc/init.d/iptables restart

猜你喜欢

转载自btbear.iteye.com/blog/2202351