tools-centos-SMB服务

(1)安装

yum install samba samba-client samba-common -y

(2)配置

mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
gedit /etc/samba/smb.conf
[global]
	workgroup = WORKGROUP
	server string= Samba Server %v
	netbios name=centos
	security = user
	map to guest=Bad User
	dns proxy=no
	max connections = 32768

[AIlog]
  comment = AIlog
	path = /home/AIlog
	writable = yes
   browsable=yes
	available=yes
	guest ok=yes
	guest only=yes
	create mode=0777
	directory mode=0777

(3) 配置启动服务

systemctl enable smb.service
systemctl enable nmb.service
systemctl restart smb.service
systemctl restart nmb.service
systemctl disable firewalld.service
gedit /etc/selinux/config
设置:SELINUX=disabled
chmod -R 0777  /home
chown -R nobody:nobody  /home
上一篇:.Net中的数字类型四则运算的有趣问题


下一篇:c# gzip解压缩