配置環境

添加samba帳戶

1、在linux機器上建立一個目錄,這個將是在windows下根目錄

2、在linux機器上,進入/etc/samba,在smb.conf結尾添加一下內容

[yonghuming] 這個是在windows下根目錄的名字

path = /xx/xxx/ 這個是第一步建的目錄的絕對路徑

available = yes

browseable = yes

public = yes

writeable = yes

guest = ok

force user = yonghuming

force group = yonghuming

create mask = 0777

directory mask = 0777

3、重啓samba,執行命令:smbd restart

4、在windows機器的"運行"對話框中輸入\\xxx.xxx.xxx.xxx (linux機器的IP)

5、將目錄yonghuming映射成網路硬盤

 

添加sudo用戶

1、打開/etc/sudoers添加以下內容

yonghuming ALL=(ALL:ALL) ALL

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