linux cifs掛載windows共用資料夾

來源:互聯網
上載者:User

標籤:linux cifs掛載windows共用資料夾


#mount -t cifs -o username=Administrator,password=123456 192.168.1.12/shared  /mnt/work

(註:紅色部分為windows的使用者名稱和密碼)

  #mount -t cifs -o username=Administrator,password= 192.168.1.12/shared /mnt/work

  (預設使用者名為Administrator,密碼為空白)

mount -t cifs 192.168.50.34:temp /root/aa 通過類似的形式使用。192.168.50.34是windows的ip地址,temp目錄是windows的共用目錄。


cifs的意思是通用網路檔案系統, mount.cifs用於掛載linux的CIFS檔案系統,當用-t cifs命令的時候間接的涉及了mount(8)命令。這個命令只能在linux上執行,以及核心必須支援cifs檔案系統。cifs協議的前身是smb協議,被大部分的windows、商務服務器、儲存應用支援。(mount.cifs跟mount -t cifs唯一的區別就是mount.cifs在samba軟體包裡,而mount在util-linux軟體包裡。)


參考資料:http://blog.itpub.net/25756293/viewspace-1330757/



本文出自 “boyhack” 部落格,請務必保留此出處http://461205160.blog.51cto.com/274918/1751498

linux cifs掛載windows共用資料夾

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.