Linux(centos7)共享文件

安裝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

相關文章
相關標籤/搜索