Linux共用windown檔案

來源:互聯網
上載者:User

標籤:linux   window   linux共用win   linux掛載win   

1、在Windows上設定一個共用目錄

   如:將d:\share設定為共用目錄


2、在Windows上建立一個使用者,如test,密碼123456


3、將test使用者加入到共用目錄d:\share的訪問組中,並設定test對該共用目錄有完全控制許可權(讀、寫)


4、在Linux下安裝samba-client用戶端

   #yum install samba-client


5、安裝cifs-utils軟體包

   # yum install cifs-utils


6、在Linux下建立一個掛載點

   # mkdir  /mnt/Windows


7、掛載Windows上的共用目錄d:\share到Linux下的/mnt/Windows目錄下

   # mount -t cifs -o username=test  //192.168.1.123/share /mnt/Windows

   Enter password: 123456


8、如果掛載成功,則可以進入/mnt/Windows下,建立一個檔案,看看Windows上能否看見


9、在/etc/fstab檔案中,加入該共用目錄的掛載資訊

//192.168.1.123/share      /mnt/Windows    cifs    username=test,password=123456  0 0


10、到此為止,Windows上的共用目錄//192.168.1.123/share就被成功掛載到了Linux上面了,並且Linux重啟後,會自動掛載該目錄到/mnt/Windows目錄下


本文出自 “行 者--->” 部落格,請務必保留此出處http://liumissyou.blog.51cto.com/4828343/1676768

Linux共用windown檔案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.