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

Basic Samba MCQ

1. The Samba server (luke.linuxsite.org) using the smb.conf file below is experiencing problems. What is most likely wrong with the smb.conf file? [global] netbios name = luke workgroup = network1 security = share load printers = yes log file = /home/admin/ max log size = 10000 wins support = yes wins server = samba.linuxsite.org bind interfaces only = yes

Answer

Correct Answer: The wins support parameter is set to "yes" , and the wins server parameter is set

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

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

3. Molly, an administrator, would like to poll the network to ensure that Samba is working properly. Which of the following commands would allow her to do this?

Answer

Correct Answer: nmblookup -d 2 "*"

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

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

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

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

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

8. Which of the following commands will be executed first by Samba?

Answer

Correct Answer: rootpreexec = mkdir /home/temp

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

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

10. Which of the following is FALSE regarding NetBIOS?

Answer

Correct Answer: The first character of a NetBIOS name is known as a NetBIOS prefix.

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

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

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

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

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

15. Which of the following does the "create mask" parameter allow Samba to do?

Answer

Correct Answer: It allows Samba to map MS-DOS modes toUnix permissions.

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

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

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

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

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

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

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

22. Parameter names are case sensitive

Answer

Correct Answer: False

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

23. What is the function of the smbclient command?

Answer

Correct Answer: It provides access to shared resources on a Windows computer

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

24. Which of the following best describes the function of the global max xmit parameter in smb.conf?

Answer

Correct Answer: It defines the maximum packet size that Samba exchanges with a client

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

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

26. All MS Windows networking uses ______ messaging.

Answer

Correct Answer: SMB-based

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

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

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

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

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

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

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

33. A system administrator has Samba running on a machine that has direct access to the Internet, as well as access to the local area network through two different network interfaces. As part of the configuration, the administrator adds the lines below to smb.conf. Which of the following describes the function of these two lines? interfaces = 192.168.1.0/255.255.255.0 bind interfaces only = yes

Answer

Correct Answer: Hosts outside the local area network will not be allowed to connect to the Samba shares.

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

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

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

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

37. Ron, a Windows user on his local network, asked his co-worker Ned to save a fle on the file server (a Linux machine). Ned saves the file in the specified directory and sends Ron a message to tell him it is there. Ron looks in the file server share, but he cannot find the file until he checks it 20 minutes later. Why is Ron having this problem?

Answer

Correct Answer: The "change notify timeout" parameter of the smb.conf file is set to 1200

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

38. Liz wants to grant administrative access to three users. How should she edit the smb.conf file?

Answer

Correct Answer: admin users =sam, bob, erica

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

39. Hans wants to change his SMB password on the local system. Which of the following should he type to do this?

Answer

Correct Answer: smbpasswd <username>

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

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

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

42. Diego, an administrator, has set up a Samba server to provide Windows users access to their Linux home directories. In the [homes] share, which of the following should he use to define the path of the home directories as "/home/samba/<user name>"?

Answer

Correct Answer: path = /home/samba/%u

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

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

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

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

46. Which of the following is a function of a WINS server?

Answer

Correct Answer: Map IP addresses to NetBIOS names

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

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

48. True or False? In share-level security, the client authenticates itself separately for each share.

Answer

Correct Answer: True

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

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

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

51. What is a Samba PDC?

Answer

Correct Answer: Primary Domain Controller

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

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

53. Is smbd a Samba Daemon?

Answer

Correct Answer: True

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

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

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

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

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

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

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

60. Which of the following best describes the function of smbd?

Answer

Correct Answer: It provides file sharing and print services to clients

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

61. Which of the following best describes the number of smbd processes that should be running at one time on a properly configured Samba server?

Answer

Correct Answer: At least one, and an additional process for each client connected to Samba

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

62. What does PDC stand for?

Answer

Correct Answer: Primary Domain Controller

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