初次接触Samba时,这三个名词很容易让咱们感到混乱。本文将介绍CIFS、SMB、Samba概念,帮助理解它们之间的关系。php
Server Message Block - SMB,即服务(器)消息块,是 IBM 公司在 80 年代中期发明的一种文件共享协议。它只是系统之间通讯的一种方式(协议),并非一款特殊的软件。 SMB 协议被设计成为容许计算机经过本地局域网(LAN)在远程主机上读写文件。远程主机上经过 SMB 协议开放访问的目录称为 共享文件夹。html
Common Internet File System - CIFS,即通用因特网文件系统。CIFS 由美国微软公司开发。服务器
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