LPI 300-300 LPIC-3: Mixed Environments - Exam 300 - version 3.0 Exam Practice Test

Page: 1 / 14
Total 53 questions
Question 1

Which of the following TCP ports is used to provide the SMB protocol without NetBIOS?



Answer : E

The SMB protocol (Server Message Block) is used for providing shared access to files and printers.

Historically, SMB ran on top of NetBIOS over TCP/IP using port 139.

SMB can also run directly over TCP/IP without the NetBIOS layer, which uses port 445.

Therefore, TCP port 445 is used to provide the SMB protocol without NetBIOS.


Official IANA port numbers: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

Microsoft documentation on SMB: https://docs.microsoft.com/en-us/windows/win32/fileio/microsoft-smb-protocol-and-cifs-protocol-overview

Question 2

How is Samba instructed to read its entire configuration from the registry?



Answer : B

Configuration Backend: Samba can be configured to read its settings from various backends, including the Windows registry.

Setting the Backend:

Adding config backend = registry in the [global] section of smb.conf instructs Samba to use the registry for its configuration.

Implementation Steps:

Open the smb.conf file.

Add the line config backend = registry under the [global] section.

Restart the Samba services to apply the changes.


Samba Wiki - Configuration

Question 3

Which of the following statements is true regarding Samba 4?



Answer : C

Samba 4 Features: Samba 4 introduces major enhancements over Samba 3, including the ability to function as an Active Directory (AD) Domain Controller.

Capability as AD Controller:

Samba 4 includes support for AD protocols, allowing it to manage domain users and computers similar to a Windows AD server.

Incorrect Statements Clarified:

Samba 4 is a significant update with new features.

Windows clients can connect to Samba 4 servers.

Samba 4 does not include a proprietary file system called sambafs.

Samba 4 can integrate with existing AD domains.


Samba Wiki - Samba4

Question 4

FILL BLANK

What command checks the Samba configuration file for syntactical correctness? (Specify ONLY the command without any path or parameters.)



Answer : A

Purpose of the Command: testparm is used to check the Samba configuration file (smb.conf) for syntax errors.

Command

Running testparm will read the smb.conf file, parse it, and display any syntax errors or warnings. This helps ensure that the configuration is valid before restarting the Samba service.

Usage Example:

Simply execute testparm in the terminal, and it will automatically check the default configuration file.


Samba.org - testparm

Question 5

Which parameters are available for samba-tool group add? (Choose two.)



Answer : D, E

The samba-tool group add command is used to add a new group to the Samba Active Directory. This command has several parameters to customize the group creation process. Two of the available parameters are --sid and --group-type.

--sid:

The --sid parameter allows you to specify a Security Identifier (SID) for the new group.

Example usage:

samba-tool group add mygroup --sid=S-1-5-21-1234567890-123456789-1234567890-1234

This command will create a new group named mygroup with the specified SID.

--group-type:

The --group-type parameter allows you to specify the type of the group being created. This can be a security group or a distribution group.

Example usage:

samba-tool group add mygroup --group-type=security

This command will create a new security group named mygroup.


Samba Official Documentation: samba-tool

Samba Active Directory Management: Managing Groups

Question 6

Which parameter within a share definition in the Samba configuration makes Samba only show files and directories on a file share which a user can access?



Answer : A

hide unreadable: This smb.conf option ensures that only files and directories that the user has permissions to access are visible in the file share.

Functionality: When set to yes, files and directories that the user cannot read (due to permissions) will be hidden from their view.

Security and Usability: This helps in enhancing both security and usability by preventing users from seeing files they cannot access, reducing clutter and potential confusion.

Example Configuration:

[example_share] hide unreadable = yes


Samba smb.conf Documentation

Question 7

FILL in BLANK

What option in sms.conf defines where the data of a file share is stored? (Specify ONLY the option name without any values.)



Answer : A

path Option: This parameter in smb.conf specifies the directory on the server where the shared data is stored.

Usage: Within a share definition, the path option points to the actual location on the filesystem that Samba will share.

Example Configuration:

[example_share] path = /srv/samba/share

Importance: Defining the correct path is crucial for ensuring that the share points to the intended directory with the appropriate data and permissions.


Samba smb.conf man page

Page:    1 / 14   
Total 53 questions