Smb主要做爲網絡通訊協議,是基於cs架構;windows
用來完成Linux與windows之間的共享服務器
[root@localhost /]# yum install -y samba
5 [songqi] 6 comment = songqi 7 path = /songqi 8 read only = no 9 public = yes
[root@localhost /]# pdbedit -a -u songqi new password: retype new password: Unix username: songqi NT username: Account Flags: [U ] User SID: S-1-5-21-2561974793-3115559980-856929239-1000 Primary Group SID: S-1-5-21-2561974793-3115559980-856929239-513 Full Name: songqi Home Directory: \\localhost\songqi HomeDir Drive: Logon Script: Profile Path: \\localhost\songqi\profile Domain: LOCALHOST Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: 三, 06 2月 2036 23:06:39 CST Kickoff time: 三, 06 2月 2036 23:06:39 CST Password last set: 二, 02 7月 2019 15:08:35 CST Password can change: 二, 02 7月 2019 15:08:35 CST Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
[root@localhost /]# mkdir /songqi
[root@localhost /]# setenforce 0 setenforce: SELinux is disabled [root@localhost /]# systemctl stop firewalld
[root@localhost /]# systemctl restart smb
輸入兩個反斜線加上samba服務器的地址。輸入你的用戶名和密碼便可網絡
\\192.168.7.2 帳號:songqi 密碼:123架構
注意你的共享目錄的權限,你對進行訪問的帳號賦予的權限決定了該帳號是否能夠對目錄內文件進行增刪改執行。spa