搭建 samba,win10訪問centos7共享的文件路徑

centos7?搭建?samba,win10訪問centos7共享的文件路徑首先安裝samba相關的服務yum install -y samba*配置samba的配置文件cp /etc/samba/smb.conf /etc/samba/smb.conf.bakvim /etc/samba/smb.conf//修改配置文件smb.conf的內(nèi)容為下述內(nèi)容[global]log file = /var/log/samba/log.%mmax log size = 50security = usermap to guest = Bad User[sambadir]path=/home/readonly=yesbrowseable=yeswritable = yes guest ok=yes配置系統(tǒng)文件打開數(shù)目上限(因為后續(xù)會通過samba文件打開大量文件,所以需要修改此參數(shù))vim /etc/security/limits.conf//文件末尾需要添加如下內(nèi)容* soft nofile 65535* hard nofile 65535//修改該文件后,需要reboot,這里暫不reboot,后面關閉防火墻后也需要reboot關閉防火墻vim /etc/selinux/config ?????????????????????#永久關閉selinuxset SELINUX=disabled ??????#SELINUX=enforcing改為SELINUX=disabled//關閉firewallsystemctl stop firewalldsystemctl disable firewalld//這里需要reboot才能生效reboot啟動SAMBAsystemctl restart smb #重啟systemctl enable smb #修改為開機啟動systemctl status smb #查看狀態(tài)在window文件瀏覽器里輸入\your samba server ipwin10?下開啟網(wǎng)絡發(fā)現(xiàn)。?
https://jingyan.baidu.com/article/c275f6ba3ef050e33d756702.htmlwin10下可能無法訪問共享文件夾解決//管理員權(quán)限進入cmd//開啟SMBv1sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi sc.exe config mrxsmb10 start= auto//關閉SMBv2 and SMBv3sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi sc.exe config mrxsmb20 start= disabled(需要重啟win10)完畢
了解更多網(wǎng)絡知識關注:http://www.vecloud.com/