MCQs > IT & Programming > Samba MCQs > Basic Samba MCQs

Basic Samba MCQ

1. A Samba server is experiencing packet loss and data corruption when multiple users access a file simultaneously. Which of the following, if added to smb.conf, would most likely fix the problem?

Answer

Correct Answer: fakeoplocks = no

Note: This Question is unanswered, help us to find answer for this one

2. Many smb.conf parameters take list arguments such as the hide files parameter. From the following, select the "hide files" parameter with the proper syntax that would prevent users from accessing files with .mbx extensions and files beginning with samba.

Answer

Correct Answer: hide files = *.mbx / samba.*

Note: This Question is unanswered, help us to find answer for this one

3. An administrator needs to define how files written to the server by users are handled. He has added the following lines to his smb.conf file in order to do this. Considering these lines, what will be the permissions on a file that a user sets to 555? security mask = 0777 force security mode = 0 directory security mask = 0777 force directory security mode = 0

Answer

Correct Answer: 555

Note: This Question is unanswered, help us to find answer for this one

4. Pete wants to configure Samba to be a WINS server. Which of the following must he do in the smb.conf file for Samba to do this?

Answer

Correct Answer: Make sure the wins server parameter is set to "wins server = none" and change the wins support parameter to "wins support = yes." Configure the Windows 95/98 and NT clients

Note: This Question is unanswered, help us to find answer for this one

5. starting a sentence with # is the only way to add a single line comment in the smb.conf file

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

6. Dora, an administrator, would like to temporarily disable a share so she can change its contents. Which of the following should she add to smb.conf in the share's section to do this?

Answer

Correct Answer: available = no

Note: This Question is unanswered, help us to find answer for this one

7. When adding static entries to your Samba WINS server, entries in wins.dat take the form of:

Answer

Correct Answer: "NAME#TYPE" TTL ADDRESS+ FLAGS

Note: This Question is unanswered, help us to find answer for this one

8. If you were to configure your disk share options with both: read only = yes, and write ok = yes in that order what would happen?

Answer

Correct Answer: The client will be able to write to the share

Note: This Question is unanswered, help us to find answer for this one

9. Palmer, an administrator working on a Linux/Windows NT network, has issued the command below. What is he doing? rpcclient -S '\\NTmachine' -U administrator -W NTDOM

Answer

Correct Answer: He is connecting to a Windows NT machine called "NTmachine" as administrator.

Note: This Question is unanswered, help us to find answer for this one

10. An administrator has modified his smb.conf file with regards to the server's behavior during elections for preferred master browser. The two modified lines listed below cause which of the following to take place? preferred master = true domain master = yes

Answer

Correct Answer: nmbd will hold elections with a guarantee of winning.

Note: This Question is unanswered, help us to find answer for this one

11. When dealing with client variables, which variable indicates the IP address of the interface on the server to which the client connected

Answer

Correct Answer: %i

Note: This Question is unanswered, help us to find answer for this one

12. Which of the following authentication methods are valid options in smb.conf?

Answer

Correct Answer: guest, sam, winbind, ntdomain, trustdomain

Note: This Question is unanswered, help us to find answer for this one

13. Maynard is optimizing his Samba services to provide ease of use as well as security. He has added the line below to /etc/auto.misc. Which of the following best describes the purpose of this addition? docs -fstype=smb, username=bob, password=2ghtex9s ://servermain/docs

Answer

Correct Answer: This allows the "docs" share to beautomounted by "bob" on login

Note: This Question is unanswered, help us to find answer for this one

14. After upgrading Samba to a newer version, older Windows 95, 98 or ME clients fail to access shares on Samba server. To fix this issue an administrator should add the following lines to the [global] section of smb.conf, then restart Samba and re-create user passwords.

Answer

Correct Answer: lanman auth = yes client lanman auth = yes client plaintext auth = yes

Note: This Question is unanswered, help us to find answer for this one

15. Isabella has recently enabled SSL support on a large Samba server and has issued the command below. What did Isabella accomplish with this command? ssleay ca -days 100 -infiles client1-csr > client1.pem

Answer

Correct Answer: She has "signed" the client (client1) certificate and authorized it to use the server

Note: This Question is unanswered, help us to find answer for this one

16. The system administrator is trying to set up a smbpasswd file from the /etc/passwd file. The system is not using NIS. Which of the following is the proper command line to produce the smbpasswd file in the "/usr/local/samba/private/" directory?

Answer

Correct Answer: cat /etc/passwd | mksmbpasswd.sh > /usr/local/samba/private/smbpasswd

Note: This Question is unanswered, help us to find answer for this one

17. Parameter names are case sensitive

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

18. Which of these are NOT advantages to non-encrypted passwords?

Answer

Correct Answer: Someone using a network sniffer cannot just record passwords going to the SMB server.

Note: This Question is unanswered, help us to find answer for this one

19. All MS Windows networking uses ______ messaging.

Answer

Correct Answer: SMB-based

Note: This Question is unanswered, help us to find answer for this one

20. When setting up a new print share what piece of information is not needed?

Answer

Correct Answer: The IP address associated with each machine

Note: This Question is unanswered, help us to find answer for this one

21. which is equivalent to: comment = this is not a comment

Answer

Correct Answer: comment = this is not \ a comment

Note: This Question is unanswered, help us to find answer for this one

22. A username map is?

Answer

Correct Answer: a mechanism for translating a login name sent by a client in the session setup request to a local Unix username.

Note: This Question is unanswered, help us to find answer for this one

23. Instead of linking all Samba commands to paths already defined in his environment, Fred wants to include /usr/local/samba/bin in his path. Which of the following will allow Fred to do this?

Answer

Correct Answer: Edit the /etc/profile file to change Fred's environment to look in /usr/local/samba/bin for commands

Note: This Question is unanswered, help us to find answer for this one

24. Annie is using Windows 95. In order for her to connect to the Samba server, she needs to run the regedit program and add an entry to the Windows registry. What type of registry entry should Annie add, and what should its value be?

Answer

Correct Answer: Enter a new DWORD Value named "EnablePlainTextPassword" with a value of one.

Note: This Question is unanswered, help us to find answer for this one

25. What command would be used to prevent a user named 'smitty' from logging in?

Answer

Correct Answer: root# smbpasswd -d smitty

Note: This Question is unanswered, help us to find answer for this one

26. An administrator has recently discovered many malicious attacks on a Samba server. The attacks originate from two rogue hosts (badhost1 and badhost2) in the NIS netgroup called "nisnet". Which of the following smb.conf entries will allow any host from nisnet to access the Samba server except badhost1 and badhost2?

Answer

Correct Answer: hosts allow = @nisnet hosts deny = badhost1, badhost2

Note: This Question is unanswered, help us to find answer for this one

27. When MS Windows machines interact with each other, with other servers, and with domain controllers as standalone systems, they are more commonly called:

Answer

Correct Answer: Workgroup members

Note: This Question is unanswered, help us to find answer for this one

28. Phillipe, an administrator, would like to configure Samba as a domain client and has added the following lines to smb.conf. The domain client is not functioning properly. What is wrong with this section of his smb.conf file? security = domain netbios name = bigsamba domain name = mydomain machine password timeout = 100

Answer

Correct Answer: Line 3 should be "workgroup =mydomain"

Note: This Question is unanswered, help us to find answer for this one

29. In order for encrypted passwords to be available to Samba, which of the following lines should appear in smb.conf?

Answer

Correct Answer: smb passwd file = /usr/local/etc/smbpasswd & encrypt passwords = yes

Note: This Question is unanswered, help us to find answer for this one

30. Which of the following Samba programs will listen for NetBIOS over IP name service requests?

Answer

Correct Answer: nmbd

Note: This Question is unanswered, help us to find answer for this one

31. Pauline is the system administrator of a Local Area Network (LAN) that contains Linux and Windows clients. The LAN uses a file server that runs on a Windows NT server. In order to have fewer servers on the network, Pauline wants to place all Linux users' home directories on the Windows server. Can the Linux machines be configured so that this is possible Why or why not?

Answer

Correct Answer: Yes, an entry can be placed in /etc/fstab to mount smb file systems

Note: This Question is unanswered, help us to find answer for this one

32. Two daemons, smbd and nmbd, provide communication between Windows and Linux machines. Each daemon controls a portion of the work. Which of the following statements correctly match these daemons with the jobs they perform?

Answer

Correct Answer: smbd performs file and print sharing. & nmbd performs NetBIOS lookups.

Note: This Question is unanswered, help us to find answer for this one

33. In the context of shared libraries (PAM) stands for?

Answer

Correct Answer: Pluggable Authentication Modules

Note: This Question is unanswered, help us to find answer for this one

34. Parameter values in smb.conf file fall into which of these categories?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

35. Which of the following does SWAT provide for administrators maintaining a Samba server?

Answer

Correct Answer: An easy-to-use, Web-based tool

Note: This Question is unanswered, help us to find answer for this one

36. A system administrator is preparing to take down the system for routine maintenance. The network is primarily used for Samba services. Before upgrading to the latest Linux kernel, the administrator wants to make sure there are no remaining connections. Which of the following programs can the administrator use to see the open connections?

Answer

Correct Answer: smbstatus

Note: This Question is unanswered, help us to find answer for this one

37. Which of the following best describes the function of nmbd?

Answer

Correct Answer: It provides NetBIOS name resolution services to clients

Note: This Question is unanswered, help us to find answer for this one

38. Which of the following methods should be used to make changes to the smbpasswd file?

Answer

Correct Answer: smbpasswd

Note: This Question is unanswered, help us to find answer for this one

39. To improve Samba server performance on Linux an administrator can add the following option to smb.conf

Answer

Correct Answer: socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

Note: This Question is unanswered, help us to find answer for this one

40. What is the Web-based interface that can be used to facilitate the configuration of Samba?

Answer

Correct Answer: SWAT

Note: This Question is unanswered, help us to find answer for this one

41. True or False? Samba provides file and print services for various Microsoft Windows clients and can integrate with a Windows Server domain.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

42. Which of the following is a Domain Controller Type?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

43. Which of the following is not a net groupmap command?

Answer

Correct Answer: Post

Note: This Question is unanswered, help us to find answer for this one

44. What does PDC stand for?

Answer

Correct Answer: Primary Domain Controller

Note: This Question is unanswered, help us to find answer for this one