CIFS、SMB、Samba關係

初次接觸Samba時,這三個名詞很容易讓咱們感到混亂。本文將介紹CIFS、SMB、Samba概念,幫助理解它們之間的關係。php

什麼是SMB?

Server Message Block - SMB,即服務(器)消息塊,是 IBM 公司在 80 年代中期發明的一種文件共享協議。它只是系統之間通訊的一種方式(協議),並非一款特殊的軟件。 SMB 協議被設計成爲容許計算機經過本地局域網(LAN)在遠程主機上讀寫文件。遠程主機上經過 SMB 協議開放訪問的目錄稱爲 共享文件夾。html

什麼是CIFS?

Common Internet File System - CIFS,即通用因特網文件系統。CIFS 由美國微軟公司開發。服務器

什麼是Samba?

Samba 是一組不一樣功能程序組成的應用集合,它能讓 Linux 服務器實現文件服務器、身份受權和認證、名稱解析和打印服務等功能。ide

與 CIFS 相似,Samba 也是 SMB 協議的實現,它容許 Windows 客戶訪問 Linux 系統上的目錄、打印機和文件(就像訪問 Windows 服務器時同樣)。工具

重要的是,Samba 能夠將 Linux 服務器構建成一個域控制器。這樣一來,就能夠直接使用 Windows 域中的用戶憑據,免去手動在 Linux 服務器上從新建立的麻煩。ui

如下爲手冊介紹this

samba - Server to provide AD and SMB/CIFS services to clients

This program is part of the samba(7) suite.

samba is the server daemon that provides Active Directory, filesharing and printing services to clients. The server provides filespace and directory services to clients using the SMB (or CIFS) protocol and other related protocols such as DCE/RPC, LDAP and Kerberos.

Clients supported include MSCLIENT 3.0 for DOS, Windows for Workgroups, Windows 95/98/ME, Windows NT, Windows 2000/XP/2003, OS/2, DAVE for Macintosh, and cifsfs for Linux.

An extensive description of the services that the server can provide is given in the man page for the configuration file controlling the attributes of those services (see smb.conf(5). This man page will not describe the services, but will concentrate on the administrative aspects of running the server.

Please note that there are significant security implications to running this server, and the smb.conf(5) manual page should be regarded as mandatory reading before proceeding with installation.

總結

- SMB/CIFS是協議,目前可認爲是等價的,習慣上稱爲SMB協議;
- Samba是Linux/Unix下的一組工具,用於實現AD、SMB/CIFS服務;

參考資料

> [1]. https://www.samba.org/cifs/docs/what-is-smb.html
> [2]. https://www.samba.org/samba/docs/
> [3]. https://wiki.samba.org/index.php/Main_Page
相關文章
相關標籤/搜索