您好,登錄后才能下訂單哦!
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)
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。