samba是一個實現smb協議的開源軟體,為區域網內的不同電腦之間提供文件和印表機共用服務。 1.安裝yum groupinstall “file-server” -y 2.配置cp /etc/samba/smb.conf /etc/samba/smb.conf.bakmkdir /sharech ...
samba是一個實現smb協議的開源軟體,為區域網內的不同電腦之間提供文件和印表機共用服務。
1.安裝
yum groupinstall “file-server” -y
2.配置
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
mkdir /share
chmod -R 755 /share
firewall-cmd —permanent —zone=public —add-service=samba
firewall-cmd —reload
vim /etc/samba/smb.conf
[share]
path = /share
read only = no
guest ok = yes
browsable = yes
writable = yes
create mask = 0755
directory mask = 0755
3.創建samba用戶
smbpasswd -a user1
vim /etc/samba/smb.conf
valid users = user1
4.啟動
systemctl start smb
systemctl start nmb
5.測試
smb://192.168.1.20