Ubuntu15.04安裝samba服務

來源:互聯網
上載者:User

安裝samba伺服器之後,很方便的實現Windows和Linux進行通訊。 安裝步驟 : 1、在Ubuntu系統下面安裝samba服務:

nii@ww:~$ sudo apt-get install samba
2、關閉Ubuntu的防火牆
nii@ww:~$ sudo service ufw stop
3、配置smb.conf檔案 step 1 先進入設定檔的目錄,然後切換到管理員權限
nii@ww:~$ cd /etc/samba/nii@ww:/etc/samba$ suPassword: 
step 2 先把 smb.conf備份一下,以防操作不當,還可以把該檔案恢複回來
root@ww:/etc/samba# cp smb.conf smb.conf.bak
step 3 用vim開啟smb.conf,把193行到200行修改成如下圖所示:

4、添加samba添加一個root使用者

root@ww:/etc/samba# smbpasswd -a rootNew SMB password:Retype new SMB password:

輸入密碼,我這裡輸入的是root使用者,也可以輸入其他的存在使用者名稱。 5、重啟sam服務

root@ww:/etc/samba# service smbd restart
6、最後在Windows下運行視窗輸入\加上IP就好了,例如我的就是:
\\192.168.142.191\root

在彈出的視窗,輸入剛剛添加的使用者名稱和密碼,就可以訪問Linux的檔案目錄了。如圖:


聯繫我們

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