samba服務器搭建---學習筆記

samba服務搭建

服務器端

IP爲10.18.44.70

#yum -y install samba samba-client samba-common //下載與samba服務有關的包
#systemctl start smb             //開啓服務
#vim /etc/samba/smb.conf   //修改配置文件
[test]
comment = this is my /tmp directory  // 註釋
path = /tmp   //共享目錄
public = yes   //允許來賓用戶訪問
writable = yes  
guest ok = yes
#useradd Annie   //添加系統用戶
#smbpasswd -a Annie   //添加smb用戶
#systemctl start smb   //啓動服務


客戶端

windows

1.資源管理器  \\10.18.44.70
2.網上鄰居   \\10.18.44.70
3.瀏覽器   \\10.18.44.70

linux

1.掛載:mount //10.18.44.70/test /opt -o username=Annie
2.命令:smbclient //10.18.44.70/test

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章