yum install -y samba*
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
vim /etc/samba/smb.conf
//修改配置文件smb.conf的內(nèi)容為下述內(nèi)容
[global]
log file = /var/log/samba/log.%m
max log size = 50
security = user
map to guest = Bad User
[sambadir]
path=/home/
readonly=yes
browseable=yes
writable = yes
guest ok=yes
vim /etc/security/limits.conf
//文件末尾需要添加如下內(nèi)容
* soft nofile 65535
* hard nofile 65535
//修改該文件后,需要reboot,這里暫不reboot,后面關(guān)閉防火墻后也需要reboot
vim /etc/selinux/config #永久關(guān)閉selinux
set SELINUX=disabled #SELINUX=enforcing改為SELINUX=disabled
//關(guān)閉firewall
systemctl stop firewalld
systemctl disable firewalld
//這里需要reboot才能生效
systemctl restart smb #重啟
systemctl enable smb #修改為開機(jī)啟動(dòng)
systemctl status smb #查看狀態(tài)
//管理員權(quán)限進(jìn)入cmd
//開啟SMBv1
sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
sc.exe config mrxsmb10 start= auto
//關(guān)閉SMBv2 and SMBv3
sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi
sc.exe config mrxsmb20 start= disabled
(需要重啟win10)
標(biāo)題名稱:centos7搭建samba,win10訪問(wèn)centos7共享的文件路徑
文章地址:http://aaarwkj.com/article34/peipse.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)、做網(wǎng)站、微信公眾號(hào)、Google、手機(jī)網(wǎng)站建設(shè)、用戶體驗(yàn)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
移動(dòng)網(wǎng)站建設(shè)知識(shí)