1 / 18

檔案伺服器 Samba 架設與管理

檔案伺服器 Samba 架設與管理. 鄧姚文. 教材. 陳源謙( 2014 ), Ubuntu Linux 管理與架站實務, 博碩文化股份有限公司, ISBN 978-986-201-389-2 (書號 OS30004 ) 湯秉翰( 2013 ), CentOS Linux 系統建置與實務 ( 第二版 ) , 博碩文化股份有限公司, ISBN 978-986-201-764-7 (書號 OS31312 )

leif
Download Presentation

檔案伺服器 Samba 架設與管理

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 檔案伺服器Samba架設與管理 鄧姚文

  2. 教材 • 陳源謙(2014), Ubuntu Linux 管理與架站實務, 博碩文化股份有限公司, ISBN 978-986-201-389-2 (書號 OS30004) • 湯秉翰(2013), CentOS Linux系統建置與實務(第二版), 博碩文化股份有限公司, ISBN 978-986-201-764-7 (書號 OS31312) • 鳥哥(2011), 鳥哥的Linux私房菜--伺服器架設篇(第三版), 碁峰資訊股份有限公司, ISBN 9789862579329 (書號 ACA016100)

  3. 大綱 • Samba服務的介紹 • 安裝Samba伺服器套件 • 簡易的檔案資源共享服務 • Samba服務組態設定選項 • Linux用戶端存取Samba服務 • Windows用戶端存取Samba服務 • MAC用戶端存取Samba服務

  4. Samba 服務的介紹 • IBM 1980 • SMB (Server Message Block) • Microsoft • 網路芳鄰 • Samba 是自由軟體 • 讓 UNIX 作業系統與微軟 Windows 作業系統的 SMB/CIFS(Server Message Block/Common Internet File System)網路協定連結 • Samba v3 版 • 可存取及 SMB 資料夾及印表機 • 可以整合 Windows Server 的網域、扮演網域控制站(Domain Controller)、加入 Active Directory 成員。

  5. SMB Versions • Early versions: • Windows XP, Windows Server 2003 • Samba in 1992 • V2: • Windows Vista in 2006 • Samba 3.0 in 2003, 3.6 in 2011 • SMB 2.1 • Windows 7 and Server 2008 R2 • SMB 3.0 (previously named SMB 2.2) • Windows 8 and Windows Server 2012 • Samba 4 in Dec. 2012 • SMB 3.02 • Windows 8.1 and Windows Server 2012 R2 • Samba 4.1 in Oct. 2013

  6. 安裝 Samba 伺服器套件 • # apt-cache search samba • # apt-get install samba

  7. 簡易檔案資源共享服務 • 啟動 Samba 服務 • # service smbd start • 停止 Samba 服務 • # service smbd stop • 重新啟動 Samba 服務 • # service smbd restart • 設定檔 • /etc/samba/smb.conf

  8. 簡易的檔案資源共享服務 • 檢查 Samba 執行狀態 • # service smbd status • # ps aux | grepsmbd • 搜尋網路上的 Samba 服務 • # findsmb

  9. Samba 服務組態設定選項 • Server基本設定 • [global] 代表整個Samba Server 的基本設定,這裡設定包括在網路芳鄰的group 顯示的群組名稱、預設的編碼等

  10. Samba服務組態設定選項 • 使用者家目錄設定 • 使用者家目錄:以使用者帳號登入 Samba Server 後個人所擁有的帳號目錄

  11. Samba服務組態設定選項 • 目錄分享設定 • 依資源分享需要增加不同的資源共享目錄 • 單一目錄的分享,通常以目錄名稱為標題

  12. Linux用戶端存取Samba服務 • 列出指定Samba Server的可用資源 • Smbclient • L:指定 Samba Server 列出分享資源 • U:指定使用者帳號

  13. Linux用戶端存取Samba服務 • Samba 終端機操作介面 • pwd • ls • cd

  14. Linux 用戶端存取 Samba 服務 • pyNeighborhood

  15. Windows 用戶端存取 Samba 服務

  16. MAC 用戶端存取 Samba 服務

  17. Samba 3 or Samba 4? • Active Directory • Samba3: Domain Member Only! • Samba4: Domain Controller and Member • Samba 4.1.8 • Windows 8.* and Windows Server 2012

  18. 本章結束 Q&A討論時間

More Related