samba的用途:有的时候,我们需要在centos7 的文件能共享给其他机器。
rpm -qa|grep samba
yum install -y samba
setenforce 0
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
#vi /etc/samba/smb.conf
新增如下内容
[durant]
comment = sambadata
path= /data
writable = yes
public = yes
directory mask = 0777
useradd -d /data -s /sbin/nologin durant
pdbedit -a -u durant
chown -Rf durant:durant /data
systemctl start smb
systemctl enable smb
systemctl restart smb
systemctl status smb
#yum -y install iptables-services
#systemctl enable iptables
#systemctl start iptables
# iptables -A INPUT -p tcp -m multiport –dports 139,445 -j ACCEPT
# iptables -A INPUT -p udp -m multiport –dports 137,138 -j ACCEPT
#service iptables save
# systemctl start iptables.service
- •VMware Workstation Pro 16安装CentOS7超详细图文步骤
- •CentOS7下配置使用JumpServer 堡垒机 (图文教程)
- •CentOS安装jdk的几种方法及配置环境变量方式
- •CentOS忘记密码修改方案以及centos卡在开机登录界面,命令失效的解决方法
- •解决笔记本安装centos7后无法调节屏幕亮度
- •VMware安装CentOS 8.1(CentOS 8系列可参考)的图文详细教程
- •CentOS7 minimal 最小化安装网络设置过程
- •CentOS7下搭建JumpServer
- •CentOS安装rpm包出现冲突时的解决办法
- •Vmware下CentOS7最小化安装方式