Samba server interview questions and answers part 1

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 is 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?

Ans: The 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?

Ans: The 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 137 for NetBIOS-ns, the NETBIOS Name Service
  • UDP port 138 for NetBIOS-dgm, the NETBIOS Datagram Service
  • TCP port 139 for NetBIOS-ssn, the NETBIOS session service
  • TCP port 445 for 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 /etc/samba/smb.conf.

Q6: What is the nmbd daemon?

Ans: The 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?

Ans: The smbd is the server daemon that provides filesharing and printing services to Windows clients.

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 is used for Samba?

Ans: The SELinux security context used for Samba is samba_share_t.

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 automating the creation and deletion of user accounts upon demand.

Q10: What is 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 security modes.

  • 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 Windows NT4 or ADS domain member. Also, it is essential when Samba has trusting 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 neighborhood, 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 is 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.


Leave a Reply

Your email address will not be published.

  1. Loving the info on this web site, you have done great job on the content.

  2. I all the time used to read post in news papers but now as I am a user of web therefore from now I am using net for posts, thanks to web.

  3. Wonderful post! We will be linking to this particularly great article on our site. Keep up the great writing.

  4. I enjoy looking through a post that can make people think. Also, many thanks for permitting me to comment.

  5. But wanna remark on few general things, The website design is perfect, the written content is really superb.

  6. Wonderful, what a weblog it is! This web site gives useful data to us, keep it up.

  7. Very good post. I am experiencing many of these issues as well..

  8. Hi mates, nice piece of writing and good arguments commented here, I am actually enjoying by these.

  9. Fastidious answers in return of this matter with genuine arguments and telling everything about that.

  10. You should try to stay as consistent as possible and you should try to find a topic that you are particularly interested in.

  11. Great article post. Much thanks again. Much obliged.

  12. This article is actually a pleasant one it assists new web viewers, who are wishing in favor of blogging.

  13. I enjoy the efforts you have put in this, regards all the great blog posts.

  14. Very good post! We will be linking to this great content on our website. Keep up the good writing.

  15. Just heartbreaking to think what you’re going through. You are amazing mate! Keeping my fingers crossed for you it all goes smoothly .

  16. Really enjoyed this post. Much thanks again. Much obliged.

  17. Good article! We are linking to this great post on our website. Keep up the good writing.

  18. Appreciate it for helping out, excellent information.

  19. You are my breathing in, I own few blogs and occasionally run out from to post.

  20. Here are several of the sites we suggest for our visitors.

  21. Hey, thanks for the blog post. Really looking forward to reading more. Want more.

  22. I consider something really special in this web site.

  23. Great post. I will be going through a few of these issues as well..

  24. If you want to take a good deal from this post then you have to apply such strategies to your won blog.

  25. Very nice collection of questions and answers.

  26. I read these questions and answers and your interview based answers, and it helped in interview. thank you fro sharing it.