English Ukrainian
Samba Daemons and Related Services
indexterm:[Samba,daemon,overview] Samba is comprised of three daemons (`smbd`, `nmbd`, and `winbindd`). Three services (`smb`, `nmb`, and `winbind`) control how the daemons are started, stopped, and other service-related features. These services act as different init scripts. Each daemon is listed in detail below, as well as which specific service has control over it.
smbdindexterm:[Samba,daemon,smbd]
The `smbd` server daemon provides file sharing and printing services to Windows clients. In addition, it is responsible for user authentication, resource locking, and data sharing through the `SMB` protocol. The default ports on which the server listens for `SMB` traffic are `TCP` ports 139 and 445.
The `smbd` daemon is controlled by the `smb` service.
nmbdindexterm:[Samba,daemon,nmbd]
The `nmbd` server daemon understands and replies to NetBIOS name service requests such as those produced by SMB/CIFS in Windows-based systems. These systems include Windows 95/98/ME, Windows NT, Windows 2000, Windows XP, and LanManager clients. It also participates in the browsing protocols that make up the Windows `Network Neighborhood` view. The default port that the server listens to for `NMB` traffic is `UDP` port `137`.
The `nmbd` daemon is controlled by the `nmb` service.
winbinddindexterm:[Samba,daemon,winbindd]
The `winbind` service resolves user and group information received from a server running Windows NT, 2000, 2003, Windows Server 2008, or Windows Server 2012. This makes Windows user and group information understandable by UNIX platforms. This is achieved by using Microsoft RPC calls, _Pluggable Authentication Modules_ (PAM), and the _Name Service Switch_ (NSS). This allows Windows NT domain and Active Directory users to appear and operate as UNIX users on a UNIX machine. Though bundled with the Samba distribution, the `winbind` service is controlled separately from the `smb` service.
The `winbind` daemon is controlled by the `winbind` service and does not require the `smb` service to be started in order to operate. `winbind` is also used when Samba is an Active Directory member, and may also be used on a Samba domain controller (to implement nested groups and interdomain trust). Because `winbind` is a client-side service used to connect to Windows NT-based servers, further discussion of `winbind` is beyond the scope of this chapter.
Obtaining a list of utilities that are shipped with Samba
See xref:File_and_Print_Servers.adoc#sect-Samba_Distribution_Programs[Samba Distribution Programs] for a list of utilities included in the Samba distribution.
Connecting to a Samba Share
indexterm:[Samba,share,connecting to with Nautilus] You can use either [application]*Nautilus* or command line to connect to available Samba shares.
Connecting to a Samba Share Using Nautilus
To view a list of Samba workgroups and domains on your network, select menu:Places[ > `Network`pass:attributes[{blank}]] from the GNOME panel, and then select the desired network. Alternatively, type `smb:` in the menu:File[ > `Open Location`pass:attributes[{blank}]] bar of [application]*Nautilus*.
An icon appears for each available `SMB` workgroup or domain on the network.
SMB Workgroups in Nautilus
samba-nautilus-domain.png