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

Conclusion

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.

26 Comments

  1. Delphinia Nevil Adna
    Delphinia Nevil Adna

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

  2. Corilla Hagan Townshend
    Corilla Hagan Townshend

    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. Fred Brod Pammi
    Fred Brod Pammi

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

  4. Carlotta Way Melli
    Carlotta Way Melli

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

  5. Margarete Diarmid Werra
    Margarete Diarmid Werra

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

  6. Etti Carleton Mariette
    Etti Carleton Mariette

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

  7. Eleanor Archie Hoye
    Eleanor Archie Hoye

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

  8. Andeee Tymothy Cristin
    Andeee Tymothy Cristin

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

  9. Wilone Parnell Warton
    Wilone Parnell Warton

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

  10. Kellsie Tobias Farlee
    Kellsie Tobias Farlee

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

  11. Norah Lester Benedict
    Norah Lester Benedict

    Great article post. Much thanks again. Much obliged.

  12. Marketa Reidar McKale
    Marketa Reidar McKale

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

  13. Sydel Roscoe Siegler
    Sydel Roscoe Siegler

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

  14. Celine Benedetto Gold
    Celine Benedetto Gold

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

  15. Veronike Isiahi Blasien
    Veronike Isiahi Blasien

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

  16. Jessamyn Wait Gentes
    Jessamyn Wait Gentes

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

  17. Bren Cad Kenji
    Bren Cad Kenji

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

  18. Corrina Conrado Zannini
    Corrina Conrado Zannini

    Appreciate it for helping out, excellent information.

  19. Odilia Michail MacRae
    Odilia Michail MacRae

    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. Sibeal Oran Dominik
    Sibeal Oran Dominik

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

  22. Renata Willdon Apicella
    Renata Willdon Apicella

    I consider something really special in this web site.

  23. Caro Fairleigh Shute
    Caro Fairleigh Shute

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

  24. Shanna Fleming Maloy
    Shanna Fleming Maloy

    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.

Leave a Reply