配置環境

添加samba賬戶linux

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

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

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

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

available = yesdi

browseable = yesco

public = yessudo

writeable = yespath

guest = okab

force user = yonghuming

force group = yonghuming

create mask = 0777

directory mask = 0777

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

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

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

 

添加sudo用戶

一、打開/etc/sudoers添加如下內容

yonghuming ALL=(ALL:ALL) ALL

相關文章
相關標籤/搜索