What is SAMBA?
- SAMBA is a file server which is used to share the files in the heterogeneous environment.
- Samba helps Linux machines to share the files and printers to windows machines.
- Linux uses SMB protocol to share the files.
- Windows machines uses the protocol common internet file system (CIFS is also known as SMB) to access the files on Linux.
What are the features of SAMBA server?
The following are the feature of the samba server:
- It provides windows Internet Name Service. This is useful for name authentication and security.
- It authenticates the windows domain logins.
- It facilitates network browsing.
- The main feature of samba is to share the files as well as resources to the clients. In this, the resources mean the hardware like the printer.
Working of SAMBA:
To understand the working of samba we have to know about the daemons of the SAMBA.
SAMBA has three daemons those are smbd, nmbd, winbindd.
This daemon provides the file sharing and printing to the windows client. This daemon is also responsible for user authentication, locking the resources and data sharing through smb protocol. The default ports for this smbd are 139 and 445. This smb daemon is controlled by smb service.
These daemon responses to the name service requests produced by the windows based systems. It involves in the browsing protocols. The default port number for the nmbd is 137. This daemon is also controlled by the smb service.
This daemon resolves the user and group information on the windows server. This makes the windows user or group information is understandable by the Linux/UNIX systems. This daemon allows windows domain users to appear and operate as UNIX users on a UNIX machine. This daemon is controlled by winbind service.
The basic working of SAMBA server:
- In the above diagram, the server is the Linux / UNIX machine and the client is a windows machine.
- The resources to be shared are the shared file system and the printer which are connected to the server.
- The server requests are carried by the smb protocol. The nmb service checks whether the client is authorized or not.
- Whenever the client is authorized the server will allow the access to mount the file system remotely by means of the smb protocol only.