Samba (software) explained

Samba
Released:[1]
Programming Language:C, Python
Operating System:Multiplatform
Genre:Network file system
License:2008: GPL-3.0-or-later
1993: GPL-2.0-or-later
1992: Proprietary

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[2] 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 history

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."

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.

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.).[3]

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.[4]

Version 2.0.0 was released in January 1999, and version 2.2.0 in April 2001.

Version history

Version 2.0.0, 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.[5]

Version 3.0.0, released on 23 September 2003, was a major upgrade. Samba gained the ability to join Active Directory as a member, though not as a domain controller Subsequent point-releases to 3.0 have added minor new features. Currently, the latest release in this series is 3.0.37, released 1 October 2009, and shipped on a voluntary basis.[6] The 3.0.x series officially reached end-of-life on 5 August 2009.

Version 3.1 was used only for development.

With version 3.2, the project decided to move to time-based releases. New major releases, such as 3.3, 3.4, etc. will appear every six months. New features will only be added when a major release is done, point-releases will be only for bug fixes.[7] Also, 3.2 marked a change of license from GPL2 to GPL3, with some parts released under LGPL3.[8] The main technical change in version 3.2 was to autogenerate much of the DCE/RPC-code that used to be handcrafted. Version 3.2.0 was released on 1 July 2008.[9] and its current release is 3.2.15 from 1 October 2009. The 3.2.x series officially reached end-of-life on 1 March 2010.

DateVersionDescription
Active Directory support[10]
It will be updated on an as-needed basis for security issues only[11]
This was the first release to include both Samba 3 and Samba 4 source code.[12]
This was the first release to include experimental support for SMB2.[13]
This is the first branch which includes full support for SMB2.[14]
It is a major rewrite that enables Samba to be an Active Directory domain controller, participating fully in a Windows Active Directory Domain. Its first technical preview (4.0.0TP1) was released in January 2006 after 3 years of development.[15] [16]
support for SMB3
Btrfs based file compression, snapshots and winbind integration[17]
New Logging features, SMB 3.1.1 support[18]
Asynchronous flush requests[19]
NTLM v1 disabled by default, Virtual List View, Various performance improvements
Multi-process Netlogon support
Samba AD with MIT Kerberos
Apple Time Machine Support. Setups using 'domain' or 'ads' security modes now require 'winbindd' to be running.[20]
Many changes[21]
SMB1 is disabled by default as a mitigation for the WannaCry vulnerability.
Samba 4.13 raises the minimum version of Python to 3.6.
Major overhaul of VFS subsystem and more.[22]
Many changes.[23]
Many changes.[24]
Many changes.[25]
Many changes.[26]
Many changes.[27]
Many changes.[28]

Security

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.[29]

On 12 April 2016, Badlock,[30] 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).[31]

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.[32] This vulnerability was assigned identifier CVE|2017-7494.[33]

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.[34] Some federal agencies using the software have been ordered to install the patch.[35]

Features

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:

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:

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.[37]

Samba includes a web administration tool called Samba Web Administration Tool (SWAT).[38] [39] SWAT was removed starting with version 4.1.[40]

Samba TNG

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.[41] 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.[42]

A key goal of the Samba TNG project was to rewrite all of the NT Domains services as FreeDCE projects.[43] This was made difficult as the services were developed manually through network reverse-engineering, with limited or no reference to DCE/RPC documentation.

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.

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.[44]

See also

Notes and References

  1. Web site: Samba Latest News . 28 November 2017.
  2. Web site: Samba - opening windows to a wider world . 2024-01-16 . www.samba.org.
  3. Web site: A bit of history and a bit of fun . 28 May 2009 . 27 June 1997 . Andrew Tridgell and the Samba Team . dead . https://web.archive.org/web/20200815183730/http://www.rxn.com/services/faq/smb/samba.history.txt . 15 August 2020.
  4. Web site: 10 years of Samba!. 21 September 2015.
  5. Web site: The Samba Team are pleased to announce Samba 2.0.0. 13 June 2024. }
  6. Web site: Release Planning for Samba 3.0. 21 September 2015.
  7. Web site: Monday, April 28 - Samba Mashup Report. 21 September 2015.
  8. Web site: Samba Adopts GPLv3 for Future Releases. 21 September 2015.
  9. Web site: Release Planning for Samba 3.2. 21 September 2015.
  10. Web site: Samba Team announces the first official release of Samba 3.0. 24 September 2003.
  11. Web site: [ANNOUNCE] Samba 3.2.0 Available for Download]. 21 September 2015.
  12. Web site: Samba - Release Notes Archive. 21 September 2015.
  13. Web site: Samba - Release Notes Archive. 21 September 2015.
  14. Web site: Samba - Release Notes Archive. 21 September 2015.
  15. Web site: Samba - opening windows to a wider world. 21 September 2015.
  16. Web site: Samba 4.0.0TP1 Available for Download . 11 January 2014 . https://web.archive.org/web/20060722050801/http://news.samba.org/releases/4.0.0tp1/ . 22 July 2006 . dead . dmy-all.
  17. Web site: Samba - Release Notes Archive. 21 September 2015.
  18. Web site: Samba - Release Notes Archive. 8 September 2015.
  19. Web site: Samba - Release Notes Archive. 22 March 2016.
  20. Web site: Release Notes for Samba 4.8.0 . 13 March 2018 . 2019-03-19.
  21. Web site: Samba 4.9.0 - Release Notes .
  22. Web site: Samba 4.14.0 - Release Notes .
  23. Web site: Samba 4.15.0 - Release Notes .
  24. Web site: Samba 4.16.0 - Release Notes .
  25. Web site: Samba 4.17.0 - Release Notes .
  26. Web site: Samba 4.18.0 - Release Notes .
  27. Web site: Samba 4.19.0 - Release Notes .
  28. Web site: Samba 4.20.0 - Release Notes .
  29. https://www.samba.org/samba/security/CVE-2012-1182 CVE-2012-1182
  30. Web site: Badlock . dead . https://web.archive.org/web/20160412215511/http://badlock.org/ . 12 April 2016 . 12 April 2016.
  31. News: Microsoft, Samba Patch "Badlock" Vulnerability. 13 April 2016.
  32. Web site: Samba 4.6.4 - Release Notes. 24 May 2017. 24 May 2017.
  33. News: SambaCry is coming. Securelist - Kaspersky Lab’s cyberthreat research and reports. 2018-03-19. en-us.
  34. News: Cimpanu . Catalin . Microsoft says it detected active attacks leveraging Zerologon vulnerability . 9 October 2020 . ZDNet . en.
  35. Web site: Constantin . Lucian . What is Zerologon? And why to patch this Windows Server flaw now . CSO Online . 9 October 2020 . en . 23 September 2020.
  36. Web site: UNIX Extensions . SambaWiki.
  37. Web site: 2020-09-11. arcanoae.com. ArcaMapper.
  38. Web site: Chapter 37. SWAT: The Samba Web Administration Tool. 21 September 2015.
  39. Web site: SWAT your Samba problems. 31 January 2008. linux.com.
  40. Web site: Samba 4.1 Features added/changed. 21 September 2015.
  41. Web site: Project FAQ - What is the relationship between Samba and Samba TNG? . 19 February 2008.
  42. Web site: Project FAQ - Which should I use - Samba or Samba TNG? . 19 February 2008.
  43. Web site: Project FAQ - What's all this about FreeDCE? . 19 February 2008.
  44. Web site: Interview with Steven Edwards . 19 February 2008 . Wine HQ . Vincent . Brian.