天天看點

Linux挂載Windows共享目錄

在windows中設定共享目錄并添權重限使用者

Linux挂載Windows共享目錄

把window系統的檔案共享挂載到linux centos 目錄下的方法步驟: 

1、先在windows下面共享需要挂載的目錄。 

2、確定linux與windows是在同一個區域網路當中。 

3、在linux下面建立一個需要挂載到的目錄。 

4、利用mount指令進行挂載。

使用mount指令把window的目錄映射到linux目錄下參數說明:

username:是window系統登入使用者名

password:window系統登入密碼

//172.216.176.36/test:設定window共享目錄的路徑, ip加共享檔案名

/var/www/html/mount:挂載到linux下的那個目錄

mount常見錯誤:

mount error 13 = permission denied

refer to the mount.cifs( manual page (e.g.man mount.cifs) 

确定輸入的指令與上面mount的寫法與上面的一緻。

然後檢查window的使用者名和密碼是否正确。

取消mount的方法:

umount /var/www/html/mount

繼續閱讀