In this article, you will learn about top Samba server interview questions and answers.
Q1: What is samba?
Ans: Samba is an open-source software package and a collection of different applications. Also, it is free software and available under the GNU (General Public License). So, you can modify and redistribute it. It uses the
Server Message Block (SMB) and
Common Internet File System (CIFS) as a protocol.
Q2: What is SMB?
SMB stands for
Server Message Block. It is a
network file-sharing protocol. So, it is a protocol that allows applications on a computer to read and write to files and request services from a server program in a computer network. And, IBM invented SMB in 1983.
Q3: What is CIFS?
CIFS stands for
Common Internet File System. It is a particular implementation of the SMB protocol and, Microsoft invented CIFS in 1996. Because it did not perform well so rarely, it does use now.
Q4: Can you tell me on which ports the Samba server works?
Ans: There are four ports on which the Samba server works. I have listed them below.
- UDP port
NetBIOS-ns, the NETBIOS Name Service
- UDP port
NetBIOS-dgm, the NETBIOS Datagram Service
- TCP port
NetBIOS-ssn, the NETBIOS session service
- TCP port
Microsoft-ds, the Microsoft Domain Service
Q5: Tell me the location of the Samba configuration file
Ans: The location of the Samba configuration file is
Q6: What is the nmbd daemon?
nmbd is a server that understands and can reply to NetBIOS over IP name service requests.
This daemon handles all name registration and resolution requests, and It is the primary medium involved in
network browsing. It handles all
UDP-based protocols. Also, The nmbd daemon is the first command that started as part of the Samba startup process.
Q7: What is the smbd daemon?
smbd is the server daemon that provides
printing services to
So, this daemon handles all
TCP/IP-based connection services for file, and print-based operations. Also, it manages
local authentication, and It starts immediately after the startup of nmbd.
Q8: Which SELinux security context used for Samba?
Ans: The SELinux security context used for Samba is
Q9: Why is security = domain better than security = server?
Ans: There are three reasons why security = domain is better.
Firstly, this method enables the Samba server to participate in
domain trust relationships. It is impossible with server-level security.
Secondly, under server-level protection, each smbd process must keep an open connection with the authentication server. It can drain a Windows NT PDC quickly. Under
domain-level security, this connection is maintained only long enough to
perform the validation, thus saving valuable resources.
Lastly, as a domain member, the Samba server has access to much more information about user accounts, which is useful for
user accounts upon demand.
Q10: What are the security or authentication mode for the Samba server?
Ans: There are only two types of security modes for Samba, share-level and user-level, which are collectively known as security levels.
There is one way to implement share-level security. But, user-level security has four ways to apply. The different ways of implementing a security level are called
- User-level security
- Domain security mode (it is the part of User-level security)
- Active Directory security mode (it is the part of User-level security)
- Server security mode (it is the part of User-level security)
- Share-level security.
Q11: What is the winbindd daemon?
Ans: This daemon starts when Samba is a member of a Windows NT4 or ADS domain. Also, it is essential when Samba has trust relationships with another domain.
The winbindd daemon will check the
smb.conf file for the presence of the
idmap uid and
idmap gid parameters. And, if winbindd finds these parameters specified, then it will use them for the UID and GID allocation.
If these parameters are not specified, winbindd will start, but they will not be able to allocate UIDs or GIDs.
Q12: When I click on my Samba server in the network neighbourhood, I am continually prompted for a password to the IPC$ share no matter what I enter.
Ans: The Windows client is attempting to use
encrypted passwords. However, the Samba server configured to support only
clear-text passwords. You should either enable encrypted passwords on the server or enable clear-text passwords on the Windows client.
In this article, you learned about Samba interview questions and answers. So, I hope you understand, but if you have any questions, you can ask in the comment section.
For further reading about Samba, you can find it useful.