Samba (software)

Revision as of 12:36, 17 February 2025 by imported>YannickFran (→‎Version history)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Template:Short description Template:About Template:Primary sources Template:Use dmy dates {{#invoke:Infobox|infobox}}Template:Template other{{#invoke:Check for unknown parameters | check | showblankpositional=1 | unknown = Template:Main other | preview = Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y | AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo upright | logo size | logo title | logo_alt | logo_caption | logo_upright | logo_size | logo_title | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot upright | screenshot size | screenshot title | screenshot_alt | screenshot_upright | screenshot_size | screenshot_title | service_name | size | standard | title | ver layout | website | qid }}Template:Main other

Samba is a free software re-implementation of the SMB networking protocol, and was originally developed by Andrew Tridgell. Samba provides file and print services for various Microsoft Windows clients<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> and can integrate with a Microsoft Windows Server domain, either as a Domain Controller (DC) or as a domain member. As of version 4, it supports Active Directory and Microsoft Windows NT domains.

Samba runs on most Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple macOS (Mac OS X 10.2 and greater) and macOS Server. Samba also runs on a number of other operating systems such as OpenVMS and IBM i. Samba is standard on nearly all distributions of Linux and is commonly included as a basic system service on other Unix-based operating systems as well. Samba is released under the terms of the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the proprietary protocol used by the Microsoft Windows network file system.

Early historyEdit

Andrew Tridgell developed the first version of Samba Unix in December 1991 and January 1992, as a PhD student at the Australian National University, using a packet sniffer to do network analysis of the protocol used by DEC Pathworks server software. It did not have a formal name at the time of the first releases, versions 0.1, 0.5, and 1.0, all from the first half of January 1992; Tridgell simply referred to it as "a Unix file server for Dos Pathworks." He understood that he had "in fact implemented the netbios protocol" at the time of version 1.0 and that "this software could be used with other PC clients."Template:Fact

With a focus on interoperability with Microsoft's LAN Manager, Tridgell released "netbios for unix", observer, version 1.5 in December 1993. This release was the first to include client-software as well as a server. Also, at this time GPL2 was chosen as license.Template:Fact

Midway through the 1.5-series, the name was changed to smbserver. However, Tridgell got a trademark notice from the company "Syntax", who sold a product named TotalNet Advanced Server and owned the trademark for "SMBserver". The name "Samba" was derived by running the Unix command grep through the system dictionary looking for words that contained the letters S, M, and B, in that order (i.e. <syntaxhighlight lang="bash" class="" style="" inline="1">grep -i '^s.*m.*b' /usr/share/dict/words</syntaxhighlight>).<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Versions 1.6, 1.7, 1.8, and 1.9 followed relatively quickly, with the latter being released in January 1995. Tridgell considers the adoption of CVS in May 1996 to mark the birth of the Samba Team, though there had been contributions from other people, especially Jeremy Allison, previously.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Version 2.0.0, released in January 1999, was a major release, support for authentication from Windows NT Primary Domain Controller, 64 bit filesystem support for very large files, and exposure of OPLOCKS to unix systems.Template:Citation needed Version 2.2.0 released in April 2001.Template:Citation needed

Version historyEdit

Template:Version

Date Version Description
Template:Dts Template:Version citation CitationClass=web

}}</ref> The 3.0.x series officially reached end-of-life on 5 August 2009.<ref>{{#invoke:citation/CS1|citation

CitationClass=web

}}</ref>

Template:Dts <ref name="releaseplan_3.2">{{#invoke:citation/CS1|citation CitationClass=web

}}</ref>||Template:Version||It will be updated on an as-needed basis for security issues only.<ref>{{#invoke:citation/CS1|citation

CitationClass=web

}}</ref><ref>{{#invoke:citation/CS1|citation

CitationClass=web

}}</ref> There was a change of license from GPL2 to GPL3, with some parts released under LGPL3.<ref name="gpl2-to-gpl3">{{#invoke:citation/CS1|citation

CitationClass=web

}}</ref> The 3.2.x series officially reached EOL 1 March 2010.<ref name="releaseplan_3.2" />

Template:Dts Template:Version
Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version This was the first release to include experimental support for SMB2.<ref>{{#invoke:citation/CS1|citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref><ref>{{#invoke:citation/CS1|citation

CitationClass=web

}}</ref>

Template:Dts Template:Version support for SMB3
Template:Dts Template:Version Btrfs based file compression, snapshots and winbind integration<ref>{{#invoke:citation/CS1|citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version NTLM v1 disabled by default, Virtual List View, Various performance improvements
Template:Dts Template:Version Multi-process Netlogon support
Template:Dts Template:Version Samba AD with MIT Kerberos
Template:Dts Template:Version Apple Time Machine Support. Setups using 'domain' or 'ads' security modes now require 'winbindd' to be running.<ref>{{#invoke:citation/CS1|citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version
Template:Dts Template:Version SMB1 is disabled by default as a mitigation for the WannaCry vulnerability.
Template:Dts Template:Version
Template:Dts Template:Version Samba 4.13 raises the minimum version of Python to 3.6.
Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

Template:Dts Template:Version citation CitationClass=web

}}</ref>

SecurityEdit

Some versions of Samba 3.6.3 and lower suffer serious security issues which can allow anonymous users to gain root access to a system from an anonymous connection, through the exploitation of an error in Samba's remote procedure call.<ref>CVE-2012-1182 - A security announcement regarding a major issue with Samba 3.6.3 and lower.</ref>

On 12 April 2016, Badlock,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> a crucial security bug in Windows and Samba, was disclosed. Badlock for Samba is referenced by CVE|2016-2118 (SAMR and LSA man in the middle attacks possible).<ref>Template:Cite news</ref>

On 24 May 2017, it was announced that a remote code execution vulnerability had been found in Samba named EternalRed or SambaCry, affecting all versions since 3.5.0.<ref name="samba-release-4.6.4">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> This vulnerability was assigned identifier CVE|2017-7494.<ref name="samba-release-4.6.4" /><ref>Template:Cite news</ref>

On 14 September 2020, a proof-of-concept exploit for the netlogon vulnerability called Zerologon (CVE|2020-1472) for which a patch exists since August was published.<ref>Template:Cite news</ref> Some federal agencies using the software have been ordered to install the patch.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

FeaturesEdit

Samba allows file and print sharing between computers running Microsoft Windows and computers running Unix. It is an implementation of dozens of services and a dozen protocols, including:

  • NetBIOS over TCP/IP (NBT)
  • SMB (known as CIFS in some versions)
    • Samba supports POSIX extensions for CIFS/SMB. The initial extension was CIFS VFS (CAP_UNIX) from 2004, which has been somewhat superseded by SMB3.<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref>

All these services and protocols are frequently incorrectly referred to as just NetBIOS or SMB. The NBT (NetBIOS over TCP/IP) and WINS protocols, and their underlying SMB version 1 protocol, are deprecated on Windows. Since Windows Vista the WS-Discovery protocol has been included along with SMB2 and its successors, which supersede these. (WS-Discovery is implemented on Unix-like platforms by third party daemons which allow Samba shares to be discovered when the deprecated protocols are disabled).

Samba sets up network shares for chosen Unix directories (including all contained subdirectories). These appear to Microsoft Windows users as normal Windows folders accessible via the network. Unix users can either mount the shares directly as part of their file structure using the mount.cifs command or, alternatively, can use a utility, smbclient (libsmb) installed with Samba to read the shares with a similar interface to a standard command line FTP program. Each directory can have different access privileges overlaid on top of the normal Unix file protections. For example: home directories would have read/write access for all known users, allowing each to access their own files. However they would still not have access to the files of others unless that permission would normally exist. Note that the netlogon share, typically distributed as a read only share from /etc/samba/netlogon, is the logon directory for user logon scripts.

Samba services are implemented as two daemons:

  • smbd, which provides the file and printer sharing services, and
  • nmbd, which provides the NetBIOS-to-IP-address name service. NetBIOS over TCP/IP requires some method for mapping NetBIOS computer names to the IP addresses of a TCP/IP network.

Samba configuration is achieved by editing a single file (typically installed as /etc/smb.conf or /etc/samba/smb.conf). Samba can also provide user logon scripts and group policy implementation through poledit.

Samba is included in most Linux distributions and is started during the boot process. On Red Hat, for instance, the /etc/rc.d/init.d/smb script runs at boot time, and starts both daemons. Samba is not included in Solaris 8, but a Solaris 8-compatible version is available from the Samba website. The OS/2-based ArcaOS includes Samba to replace the old IBM LAN Server software.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Samba includes a web administration tool called Samba Web Administration Tool (SWAT).<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> SWAT was removed starting with version 4.1.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Samba TNGEdit

Template:Update section

Samba TNG (The Next Generation) was forked in late 1999, after disagreements between the Samba Team leaders and Luke Leighton about the directions of the Samba project. They failed to come to an agreement on a development transition path which allowed the research version of Samba he was developing (known at the time as Samba-NTDOM) to slowly be integrated into Samba.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Development has been minimal, due to a lack of developers. The Samba TNG team frequently directed potential users towards Samba because of its better support and development.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

A key goal of the Samba TNG project was to rewrite all of the NT Domains services as FreeDCE projects.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> This was made difficult as the services were developed manually through network reverse-engineering, with limited or no reference to DCE/RPC documentation.Template:Citation needed

A key difference from Samba was in the implementation of the NT Domains suite of protocols and MSRPC services. Samba makes all the NT Domains services available from a single place, whereas Samba TNG separated each service into its own program.Template:Citation needed

ReactOS started using Samba TNG services for its SMB implementation. The developers of both projects were interested in seeing the Samba TNG design used to help get ReactOS talking to Windows networks. They worked together to adapt the network code and build system. The multi-layered and modular approach made it easy to port each service to ReactOS.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

See alsoEdit

Template:Portal

NotesEdit

Template:Notelist

ReferencesEdit

Template:Reflist

External linksEdit

Template:Sister project