Lpi LPIC-2 - Exam 202 (part 2 of 2), version 4.5 - 202-450 模擬練習
What configuration directive of the Apache HTTPD server defines where log files are stored?
(Specify ONE of the directives without any other options.)
(Specify ONE of the directives without any other options.)
正解:
ErrorLog
Explanation:
The ErrorLog directive of the Apache HTTPD server defines the location and name of the file where the server will log any errors it encounters. The default value of this directive is logs/error_log, which means that the error log file will be stored in the logs subdirectory of the server root directory. The ErrorLog directive can also accept a filename relative to the server root, an absolute filename, or a pipe to a program that will handle the logging. For example, ErrorLog logs/my_error_log will store the error log file in the logs subdirectory with the name my_error_log, ErrorLog /var/log/httpd/error_log will store the error log file in the /var/log/httpd directory with the name error_log, and ErrorLog "|bin/rotatelogs logs/error_log 86400" will pipe the error log to the rotatelogs program that will rotate the log file every 86400 seconds. References: Log Files - Apache HTTP Server Version 2.4, Directive Quick Reference - Apache HTTP Server Version 2.4, How do I find Apache http server log files? - Code A Site Blog, mod_log_config - Apache HTTP Server Version 2.2
Explanation:
The ErrorLog directive of the Apache HTTPD server defines the location and name of the file where the server will log any errors it encounters. The default value of this directive is logs/error_log, which means that the error log file will be stored in the logs subdirectory of the server root directory. The ErrorLog directive can also accept a filename relative to the server root, an absolute filename, or a pipe to a program that will handle the logging. For example, ErrorLog logs/my_error_log will store the error log file in the logs subdirectory with the name my_error_log, ErrorLog /var/log/httpd/error_log will store the error log file in the /var/log/httpd directory with the name error_log, and ErrorLog "|bin/rotatelogs logs/error_log 86400" will pipe the error log to the rotatelogs program that will rotate the log file every 86400 seconds. References: Log Files - Apache HTTP Server Version 2.4, Directive Quick Reference - Apache HTTP Server Version 2.4, How do I find Apache http server log files? - Code A Site Blog, mod_log_config - Apache HTTP Server Version 2.2
The program vsftpd, running in a chroot jail, gives the following error:

Which of the following actions would fix the error?

Which of the following actions would fix the error?
正解: D
解説: (PassTest メンバーにのみ表示されます)
Which option in the Postfix configuration makes Postfix pass email to external destinations to another SMTP-server?
(Specify ONLY the option name without any values.)
(Specify ONLY the option name without any values.)
正解:
relayhost
Explanation:
The relayhost parameter in the Postfix configuration file (/etc/postfix/main.cf) specifies the hostname or IP address of an external SMTP server that will handle the outgoing emails for Postfix. This server is also known as a smarthost or a relayhost. By using a relayhost, Postfix can delegate the responsibility of delivering emails to remote destinations to another server that may have better network connectivity, security, or reputation. A relayhost can also provide authentication, encryption, or filtering services for Postfix. References:
Postfix Standard Configuration Examples
How to configure Postfix relayhost (smarthost) to send eMail using an external smptd
Explanation:
The relayhost parameter in the Postfix configuration file (/etc/postfix/main.cf) specifies the hostname or IP address of an external SMTP server that will handle the outgoing emails for Postfix. This server is also known as a smarthost or a relayhost. By using a relayhost, Postfix can delegate the responsibility of delivering emails to remote destinations to another server that may have better network connectivity, security, or reputation. A relayhost can also provide authentication, encryption, or filtering services for Postfix. References:
Postfix Standard Configuration Examples
How to configure Postfix relayhost (smarthost) to send eMail using an external smptd
In order to specify alterations to an LDAP entry, what keyword is missing from the following LDIF file excerpt?

Specify the keyword only and no other information.

Specify the keyword only and no other information.
正解:
modify
Explanation
In the context of LDAP, when alterations need to be specified to an entry, the "changetype: modify" keyword is used in the LDIF file. This keyword indicates that modifications are to be made to the existing LDAP entry.
The modify operation can be used to add, replace, or delete attributes and their values. The syntax of the modify operation is as follows:
changetype: modify add: attribute attribute: valuereplace: attribute attribute: valuedelete: attribute attribute:
value
Each modify operation is separated by a hyphen (-) and a blank line separates different entries. The attribute;binary subtype can be used to indicate that the attribute values are binary data. The LDIF syntax for reading a binary value from a file is:
attribute;binary:< file:///path/to/file
References:
LPIC-2 Exam 202 Objectives, Objective 207.3: LDAP Operations
How To Use LDIF Files to Make Changes to an OpenLDAP System, DigitalOcean Modifying Entries Using ldapmodify, Oracle ldap - ldapadd/ldapmodify: clarifications needed about these commands, Server Fault Modify Attribute type definition on LDAP server, Stack Overflow
Explanation
In the context of LDAP, when alterations need to be specified to an entry, the "changetype: modify" keyword is used in the LDIF file. This keyword indicates that modifications are to be made to the existing LDAP entry.
The modify operation can be used to add, replace, or delete attributes and their values. The syntax of the modify operation is as follows:
changetype: modify add: attribute attribute: valuereplace: attribute attribute: valuedelete: attribute attribute:
value
Each modify operation is separated by a hyphen (-) and a blank line separates different entries. The attribute;binary subtype can be used to indicate that the attribute values are binary data. The LDIF syntax for reading a binary value from a file is:
attribute;binary:< file:///path/to/file
References:
LPIC-2 Exam 202 Objectives, Objective 207.3: LDAP Operations
How To Use LDIF Files to Make Changes to an OpenLDAP System, DigitalOcean Modifying Entries Using ldapmodify, Oracle ldap - ldapadd/ldapmodify: clarifications needed about these commands, Server Fault Modify Attribute type definition on LDAP server, Stack Overflow
A user requests a "hidden" Samba share, named confidential, similar to the Windows Administration Share.
How can this be configured?



How can this be configured?



正解: A
解説: (PassTest メンバーにのみ表示されます)
Which of these tools, without any options, provides the most information when performing DNS queries?
正解: B
解説: (PassTest メンバーにのみ表示されます)
Which netfilter table contains built-in chains called INPUT, OUTPUT and FORWARD?
正解: A
解説: (PassTest メンバーにのみ表示されます)
Which of these sets of entries does the following command return?


正解: C
解説: (PassTest メンバーにのみ表示されます)