Samba (software)

This article is about the standard Microsoft Windows interoperability suite of programs for Linux and Unix. For other uses, see Samba (disambiguation).
Samba
Initial release 1992 (1992)[1]
Stable release 4.4.0 / March 22, 2016 (2016-03-22)[2]
Preview release 4.4.0rc1[3] / January 27, 2016 (2016-01-27)[3]
Development status Active
Written in C, C++, Python
Operating system Multiplatform
Type Network file system
License GPLv3
Website www.samba.org

Samba is a free software re-implementation of the SMB/CIFS networking protocol, and was originally developed by Andrew Tridgell. Samba provides file and print services for various Microsoft Windows clients 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, OpenVMS and Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple's OS X Server, and OS X client (version 10.2 and greater). 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 standard 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. At the time of the first releases, versions 0.1, 0.5 and 1.0, all from the first half of January 1992, it did not have a proper name, and Tridgell just called it "a Unix file server for Dos Pathworks". At the time of version 1.0, he realized that he "had in fact implemented the netbios protocol" 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", nbserver, 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. grep -i '^s.*m.*b' /usr/share/dict/words).[4]

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

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

Version history

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.[6] 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.[7] The 3.0.x series officially reached end-of-life on 5 August 2009.[7]

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 6 months. New features will only be added when a major release is done, point-releases will be only for bug fixes.[8] Also, 3.2 marked a change of license from GPL2 to GPL3, with some parts released under LGPL3.[9] 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.[10] 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.[10]

DateVersionDescription
23-09-20033.0.0Major upgrade
01-07-20083.2.0It will be updated on an as-needed basis for security issues only[11]
27-01-20093.3
03-07-20093.4This was the first release to include both Samba 3 and Samba 4 source code.[12]
30-04-20123.4.17It is the latest stable release of the Samba 3.4 series.[13]
01-03-20103.5This was the first release to include experimental support for SMB2.[14]
09-08-20113.6 This is the first branch which includes full support for SMB2.[15]
11-12-20124It 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.[16][17]
10-10-20134.1support for SMB3
04-03-20154.2Btrfs based file compression, snapshots and winbind integration[18]
08-09-20154.3New Logging features, SMB 3.1.1 support[19]
22-03-20164.4 Asynchronous flush requests[20]

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

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

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 are deprecated on Windows.

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

Samba includes a web administration tool called Samba Web Administration Tool (SWAT).[24][25][26] SWAT was removed starting with version 4.1.[27]

Samba TNG

Samba TNG
Developer(s) Samba TNG team
Stable release 0.5-rc1 / 3 December 2009 (2009-12-03)
Development status Unmaintained
Operating system Cross-platform
Type Microsoft networking
License GNU General Public License
Website www.samba-tng.org

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

Since the project started, development has been minimal, due to a lack of developers. As such the Samba TNG team frequently recommends to people who are unsure of which program to use to try Samba instead, as they have more developers and are able to support more platforms and situations.[29]

One of the key goals of the Samba TNG project is to rewrite all of the NT Domains services as FreeDCE projects.[30] Making this rewriting goal difficult is the fact that services were all developed manually through network reverse-engineering, with limited or no reference to DCE/RPC documentation.

The key differences between the two programs are 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 has separated each service into its own program.

ReactOS has 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 have been working together to adapt the network code and build system. The multi-layered and modular approach made it easy to port each service to ReactOS.[31]

See also

References

  1. "10 years of Samba". Retrieved 2011-08-12.
  2. "Samba 4.4.0 Available for Download". Samba. 2016-03-22. Retrieved 2016-03-22.
  3. 1 2 "Release Announcements (Samba 4.4.0rc1)". 2016-01-27. Retrieved 2016-01-27.
  4. "A bit of history and a bit of fun". 1997-06-27. Retrieved 2009-05-28.
  5. "10 years of Samba!". Retrieved 21 September 2015.
  6. "The first stable release of Samba 3.0 is available". Retrieved 21 September 2015.
  7. 1 2 "Release Planning for Samba 3.0". Retrieved 21 September 2015.
  8. "Monday, April 28 - Samba Mashup Report". Retrieved 21 September 2015.
  9. "Samba Adopts GPLv3 for Future Releases". Retrieved 21 September 2015.
  10. 1 2 "Release Planning for Samba 3.2". Retrieved 21 September 2015.
  11. "[ANNOUNCE] Samba 3.2.0 Available for Download". Retrieved 21 September 2015.
  12. "Samba - Release Notes Archive". Retrieved 21 September 2015.
  13. "Samba - Release Notes Archive". Retrieved 21 September 2015.
  14. "Samba - Release Notes Archive". Retrieved 21 September 2015.
  15. "Samba - Release Notes Archive". Retrieved 21 September 2015.
  16. "Samba - opening windows to a wider world". Retrieved 21 September 2015.
  17. Samba 4.0.0TP1 Available for Download
  18. "Samba - Release Notes Archive". Retrieved 21 September 2015.
  19. "Samba - Release Notes Archive". Retrieved 8 September 2015.
  20. "Samba - Release Notes Archive". Retrieved 22 March 2016.
  21. CVE-2012-1182 - A security announcement regarding a major issue with Samba 3.6.3 and lower.
  22. "Badlock". Retrieved 12 April 2016.
  23. "Microsoft, Samba Patch "Badlock" Vulnerability". Retrieved 13 April 2016.
  24. "Chapter 37. SWAT: The Samba Web Administration Tool". Retrieved 21 September 2015.
  25. "Configure IT Quick: Simplify Samba configuration with SWAT". archive.is. Retrieved 21 September 2015.
  26. "Linux.com". Retrieved 21 September 2015.
  27. "Samba 4.1 Features added/changed". Retrieved 21 September 2015.
  28. "Project FAQ - What is the relationship between Samba and Samba TNG?". Retrieved 2008-02-19.
  29. "Project FAQ - Which should I use - Samba or Samba TNG?". Retrieved 2008-02-19.
  30. "Project FAQ - What's all this about FreeDCE?". Retrieved 2008-02-19.
  31. Vincent, Brian. "Interview with Steven Edwards". Wine HQ. Retrieved 2008-02-19.

External links

Wikibooks has a book on the topic of: Samba
This article is issued from Wikipedia - version of the Thursday, April 14, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.