LX0-102 - CompTIA Linux+ [Powered by LPI] Exam 2
Go back to CompTIA
There are multiple network interfaces on a server. Which parameters must you set in smb.conf to limit on which interfaces Samba will accept connections? (Choose TWO correct answers)
bind interfaces only
Which of the following commands can an administrator use to change a user's password expiry information? (Select THREE).
Which of the following development libraries are used to make Samba compatible with ADS? (Select TWO correct answers.)
What does the entry valid users = @smbusers in the smb.conf file mean when used in a share section?
Only users in the unix group called smbusers can access this share.
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
Which of the following SQL statements will select the fields name and address from the contacts table?
SELECT name, address FROM contacts;
What is the purpose of tripwire?
To identify changes to critical system files and directories.
On a dual boot system, every time the system is booted back into Linux the time has been set backward by two hours. Which of the following commands will correct the problem so it will not occur again?
hwclock --hctosys --localtime
Which configuration file does sudo read when determining if a user is permitted to run applications with root privileges?
To create a user account, keep in mind that the username is at most __ characters long.
Which option to smbldap-useradd will add a machine account?
You're writing a simple Perl script to query an LDAP directory using the Net::LDAP module. Which method would you use to determine if the start_tls() operation was successful?
Which of the following commands will print the file putty on the printer hplaserj? (Choose all that apply)
lpr -Phplaserj putty
lpr -P hplaserj putty
Which LDAP object class is used in a white pages implementation?
What output will the command $ seq 1 5 20 produce?
1 6 11 16
The hosts.lpd file provides:
A list of hosts allowed to use printers on the local machine.
Which of the following are valid LDAP client commands? (Choose TWO correct answers.)
Which configuration option can you use to prevent the root user from logging directly onto a machine using ssh?
In apache configuration which directives are used to restrict access based on host/domain name and IP address?
order, allow from and deny from
In which section of smb.conf should the path to the domain policy file be declared?
Which of the following crontab entries could be used to set the system time at regular intervals?
1 0 * * * /usr/sbin/ntpdate ntp1.digex.net > /dev/null 2>&1
What openssl command will generate a certificate signing request (CSR) using the private key file privkey.pem?
openssl req new key privkey.pem out cert.csr
All of the following are contained in the locale setting of the operating system EXCEPT:
Which of the following provides a non-graphical, text based interface for users who are visually impaired that can be used as a screen reader?
Which of the following configuration files would an administrator edit to change default options for outbound ssh sessions?
What does the LDIF acronym stand for?
LDAP Data Interchange Format
Which file, when using Sendmail or a similar MTA system, will allow a user to redirect all their mail to another address and is configurable by the user themselves?
The local system administrator has created a configuration entry for apache version 2 that isn't working. What is wrong with the following configuration? <Location /members> AuthName Members AuthType Basic AuthUserFile /www/passwd </Location>
The directive require validuser is missing.
In capacity planning exercises, what tools assist in identifying processes of interest from other processes? (Select TWO correct answers.)
To avoid having to add a machine trust account to a PDC for each Windows client in the domain (using the useradd command), a directive can be used in the Samba configuration file. Select the option below that shows the best solution for this situation.
add machine script
Which command allows you to make a shell variable visible to subshells?
Which schema file is required by OpenLDAP?
By default, when verifying a signed file or a file with a detached signature, which keyring is used to search for public keys?
On a Postfix mail server, the command postconf -m is run to determine if OpenLDAP is supported. Which storage medium would indicate support for OpenLDAP?
Which of the following directories in a user's home contains configuration files and key rings for GPG?
What BASH environment variable will prevent you from overwriting a file with a ">" or ">>"?
set -o noclobber
Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?
When using a localized installation of Windows - such as Japanese or Chinese - the names of files which are stored on the server do not display correctly in Windows Explorer. Which parameters in smb.conf should be checked? (Choose TWO correct answers)
The response times on a Samba server are gradually increasing, so it is decided to experiment with various socket options in smb.conf. Which of the following are valid values for this parameter? (Choose THREE correct answers)
The correct command to view "verbose" line printer queue information is
Which command would be used to search for all available workgroups/domains and NetBIOS names?
Which of the following commands will print the exit value of the previous command to the screen in bash?
Which of the following lines would you expect to see in the file /etc/protocols?
udp 17 UDP
Which command will delete the environment variable FOOBAR?
Which command will list the shares on the workstation with the NetBIOS name officepc and IP address 192.168.0.3?
smbclient -L officepc
An administrator has just configured an OpenVPN client. Upon starting the service, the following message is displayed: TLS Error: TLS key negotiation failed to occur within 60 seconds Which of the following statements is true?
The client was unable to establish a network connection with the server.
After finishing configuring of a Unix client to authenticate with a Microsoft Active Directory server, login attempts are unsuccessful. Which of the following is most likely the cause?
The PAM library is searching the directory with the default search filter.
Which configuration file would you edit to change default options for outbound ssh sessions?
An administrator discovers a pending job for the at command. Which of the following does the administrator need to use to remove it?
Which of the following looks like a correct entry in the /etc/hosts file?
127.0.0.1 localhost.localdomain localhost