安装samba
samba安装linux
关闭防火墙和selinux
systemctl stop firewalldci
systemctl disable firewalldit
/etc/selinux/config SELINUX=enforcing改成SELINUX=disabledtable
yum install -y samba samba-client
systemctl start smbcli
systemctl enable smb
smbpasswd -a 用户名 #添加一个samba用户防火墙
pdbedit -L 列出Samba用户列表yum
[all]
comment=share
path=/
browseable=yes
writable=yestop