ubuntu samba實現linux與windows之間的資源共用

2020-10-19 15:00:40

1、安裝samba軟體

sudo apt-get install samba

2、安裝smbclient

sudo apt-get install smbclient

3、建立共用資料夾  

/home/

mkdir share

4、修改組態檔

sudo vi /etc/samba/smb.conf

編輯組態檔,點選a鍵進入編輯模式。末尾:

[share]

path = /home/share

available = yes

browseable = yes

public = yes

writable = yes

valid users = root

read only =no

點選esc,輸入:wq  儲存退出

5、重新啟動samba

sudo /etc/init.d/samba restart

6、設定使用者名稱 密碼

sudo smbpasswd -a root

7、windows下 新增對映  即可

 

https://blog.csdn.net/Allen101zhang/article/details/89480769?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param