




























































































Besser lernen dank der zahlreichen Ressourcen auf Docsity
Heimse Punkte ein, indem du anderen Studierenden hilfst oder erwirb Punkte mit einem Premium-Abo
Prüfungen vorbereiten
Besser lernen dank der zahlreichen Ressourcen auf Docsity
Download-Punkte bekommen.
Heimse Punkte ein, indem du anderen Studierenden hilfst oder erwirb Punkte mit einem Premium-Abo
lpic exam study questions preparation
Art: Grafiken und Mindmaps
1 / 143
Diese Seite wird in der Vorschau nicht angezeigt
Lass dir nichts Wichtiges entgehen!





























































































Exam: 202-450 LPIC-2 Certified Linux Engineer 295 questions
Given this excerpt from an Apache configuration file, which of the numbered lines has INCORRECT syntax? 1: <VirtualHost *:80> 2: ServerAdmin [email protected] 3: DocumentRoot /home/http/admin 4: ServerName admin.server.example.org 5: DirectoryIndex index.php default.php 6: ErrorLog logs/admin.server.example.org-error_log 7: CustomLog logs/admin.server.example.org-access_log common 8:
A. 1 B. 1 and 4 C. 1, 4 and 7 D. 1 and 5 E. None. The configuration is valid
Correct Answer: E
Select the TWO correct statements about the following excerpt from httpd.conf: <Directory /var/web/dir1>
Which of the following lines in the Apache configuration file would allow only clients with a valid certificate to access the website?
A. SSLCA conf/ca.crt B. AuthType ssl C. IfModule libexec/ssl.c D. SSLRequire E. SSLVerifyClient require
Correct Answer: E
Which TWO of the following options are valid, in the /etc/exports file?
A. rw B. ro C. rootsquash D. norootsquash E. uid
Correct Answer: AB
Which of the following is needed, to synchronize the Unix password with the SMB password, when the encrypted SMB password in the smbpasswd file is changed?
A. Nothing, because this is not possible.
C. Rin winbind --sync, to synchronize the passwords. D. Add unix password sync = yes to smb.conf. E. Add smb unix password = sync to smb.conf.
Correct Answer: D
The new file server is a member of the Windows domain "foo". Which TWO of the following configuration sections will allow members of the domain group "all" to read, write and execute files in "/srv/smb/data"?
A. [data] comment = data share path = /srv/smb/data write list = @foo+all force group = @foo+all create mask = 0550 directory mask = 0770 B. [data] comment = data share path = /srv/smb/data write list = @foo+all force group = @foo+all create mask = 0770 directory mask = 0770 C. [data] path = /srv/smb/data write list = @foo+all force group = @foo+all create mask = 0770 directory mask = 0770 D. [data] comment = data share path = /srv/smb/data write list = @foo+all force group = @foo+all directory mask = 0770 E. [data] comment = data share path = /srv/smb/data write list = @foo+all force group = all create mask = 0550 directory mask = 0770
Correct Answer: BC
Explanation
Which command can be used to list all exported file systems from a remote NFS server:
A. exportfs B. nfsstat C. rpcinfo D. showmount E. importfs
Correct Answer: D
Correct Answer: B
: QUESTION 12 What happens when the Linux kernel can't mount the root filesystem when booting?
A. An error message is shown, showing which device couldn't be mounted or informing that init couldn't be found. B. An error message is shown and the system reboots after a keypress.
C. An error message is shown and the system boots in maintenance mode. D. An error message is shown and the administrator is asked to specify a valid root filesystem to continue the boot process. E. An error message is shown, stating that the corresponding kernel module couldn't be loaded.
Correct Answer: A
Messages from programs are not appearing in the user's native language. What environment variable must be set for this to happen?
A. LANG B. I18N C. MESSAGES D. MSGS E. LC_MSGS
Correct Answer: A
When bash is invoked as an interactive login shell, which of the following sentences is true?
A. It first reads and executes commands in /etc/profile and then does same for ~/.bash_profile and ~/.bashrc B. It first reads and executes commands in /etc/bashrc and then does same for /etc/profile C. It reads and executes commands in ~/.bashrc only if /etc/profile or another initialization script calls it. D. It ignores /etc/profile and only reads and executes commands in ~/.bashrc E. It first reads and executes commands in /etc/profile and then does same for ~/.bash_profile, ~/.bash_login and ~/.profile
Correct Answer: C
Why is the root file system mounted read-only during boot and remounted with write permission later on?
A. Because if problems with the root file system are detected during the boot, fsck can be run, without risk of damage. B. Because this way crackers cannot collect information about root with boot sniffers C. To avoid writing to the disk, unless the root password is known. D. To avoid other operating systems overwriting the Linux root partition E. Because the disk has its own write protection that cannot change by the operating system.
Correct Answer: A
A GRUB boot loader installed in the MBR was accidentally overwritten. After booting with a rescue CDROM, how can the lost GRUB first stage loader be recovered?
A. Use dd to restore a previous backup of the MBR B. Install LILO since there is no easy way to recover GRUB C. Running mformat will create a new MBR and fix GRUB using info from grub.conf
D. Run grub-install after verifying that grub.conf is correct. E. Run fdisk --mbr /dev/had assuming that the boot harddisk is /dev/hda.
Correct Answer: D
C. The file-system is specified as ext2 in/etc/fstab. D. The system was not shut down cleanly.
Correct Answer: B
What is the name of the dovecot configuration variable that specifies the location of user mail?
A. mbox B. mail_location C. user_dir D. maildir E. user_mail_dir
Correct Answer: B
What is the missing keyword in the following configuration sample for dovecot which defines which authentication types to support? (Specify only the keywork) auth default {
= plain login cram-md }
A. auth_order B. mechanisms C. methods D. supported
Correct Answer: B
What does the following procmail configuration section do? :0fw
A. procmail sends all email older than 256000 seconds to the external program foo B. If an email contains a value less than 256000 anywhere within it, procmail will process the email with the program foo C. procmail sends mail containing less than 256000 words to program foo D. The program foo is used instead of procmail for all emails larger than 256000 Bytes E. If the email smaller than 256000 Bytes, procmail will process it with the program foo
Correct Answer: E
C. mount -o nolocking srvl:/data /mnt/data D. mount -o nolock srvl:/data /mnt/data E. mount -o nolock /data@srvl /mn/data
Correct Answer: D
In what mode is your FTP session when the client side makes the connections to both the data and command ports of the FTP server?
A. passive B. active C. impassive D. safe E. inactive
Correct Answer: A
Which of the following organisations track and report on security related flaws in computer technology? (Please select TWO answers)
A. Bugtraq B. CERT C. CSIS D. Freshmeat E. Kernel.org
Correct Answer: AC
Which of the following Linux services has support for only the Routing Information Protocol (RIP) routing protocol?
A. gated B. ipchains C. netfilter D. routed E. zebra
Correct Answer: D
Which of the following is NOT included in a Snort rule header?
A. protocol B. action C. source IP address D. packet byte offset E. source port
Correct Answer: D
Running sysctl has the same effect as:
A. Changing the kernel compilation parameters B. Writing to files inside /proc C. Changing process limits using ulimit D. Editing files inside /etc/sysconfig
E. There is no equivalent to this utility
Correct Answer: B
Which files are read by the lsdev command? (Please specify THREE answers)
A. /proc/dma B. /proc/filesystems C. /proc/interrupts D. /proc/ioports E. /proc/swaps
Correct Answer: ACD
Which of the following describes the main purpose of strace?
A. Show the TCP/IP stack data, to help to solve network problems B. Help to follow the traces of intruders of the internal network C. Debug programs by displaying the original code of the program. It is a kind of "disassembler" D. Reverse engineer applications, resulting in the source code of the program E. Debug programs by monitoring system calls and reporting them
Correct Answer: E
The following data is some of the output produced by a program. Which program produced this output? strftime (" Thu", 1024, "%a", 0xb7f64380) = fwrite ("Thu", 3, 1, 0xb7f614e0) = fputc (' ', 0xb7f614e0) = strftime (" Feb", 1024, " %b", 0xb7f64380) = fwrite ("Feb", 3, 1, 0xb7f614e0) = fputc (' ', 0xb7f614e0) = fwrite ("19", 2, 1, 0xb7f614e0) =
A. lsof B. ltrace C. nm D. strace E. time
A. Add the command to /etc/rc.local B. Create a script in ~/.kde/Autostart/ and place the command in it C. Create a script in /etc/init.d/ and place a link to it in /etc/rc2.d/ D. Create a script in /etc/rc2.d/ and place the command in it
Correct Answer: A
An administrator has placed an executable in the directory /etc/init.d, however it is not being executed when the system boots into runlevel 2. What is the most likely cause of this?
A. The script has not been declared in/etc/services B. runleve1 2 is not declared in /etc/inittab C. The script has the permissions 700 and is owned by root D. A corresponding link was not created in /etc/rc2.d
Correct Answer: D
For an LDAP client configuration, the LDAP base needs to be set. Which TWO of the following actions would achieve that?
A. export LDAPBASE=dc=linuxfoo,dc=com
B. export BASE=dc=linuxfoo,dc=com C. Edit ldapbase.conf and add "BASE dc=linuxfoo,dc=com". D. Edit cldap.conf and add "BASE dc=linuxfoo,dc=com". E. Edit ldap.conf and add "BASE dc=linuxfoo,dc=com".
Correct Answer: AE
Which of the following options can be passed to a DHCP client machine using configuration options on the DHCP server?
A. The NIS domain name B. The resolving order in/etc/resolv.conf C. The priority order in nsswitch.conf D. The filter rules for iptables E. The contents of hosts.allow and hosts.deny
Correct Answer: A