天天看點

linux 下 建構SMB檔案伺服器

參考連結

https://blog.csdn.net/Jack_Zhao_/article/details/88657682

以上文檔實戰驗證。

部署注意事項

1)關閉 SElinux ####遇到過沒有關閉selinux SMB服務啟動後檔案丢失

2)關閉linux firewall 不關閉會導緻打不開

[root@localhost ~]# cat /etc/samba/smb.conf

[global]

workgroup = SAMBA

security = user

map to guest = Bad User

log file = /var/log/samba/log.%m

[public]

comment = Public

path = /opt/shares

public = yes

read only = No

[root@localhost ~]# cd /opt/

[root@localhost opt]# ll

總用量 0

drwxr-xr-x 2 nobody nobody 44 1月 6 16:17 shares

[root@localhost opt]#