1、安装samba服务
#yum -y install samba
#yum -y install samba-client
vi /etc/samba/smb.conf
[global]
workgroup = LinuxSir
netbios name = work
server string = Linux Samba Server TestServer
security = share
[work]
path = /var/batchpic
writeable = yes
browseable = yes
guest ok = yes
3、在windows下报“没有权限”的解决方式
(1)关掉防火墙
service iptables stop
(2)关闭SELinux
修改/etc/selinux/config文件中的 SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0