tools-centos-SMB服务

2021/10/22 7:13:14

本文主要是介绍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


这篇关于tools-centos-SMB服务的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程