Test
UNIX QUESTIONS 1
Este test tiene tipos de pregunta que se abren en el reproductor de siempre.
Preguntas del test (60)
1When connecting to an SSH server for the first time, its fingerprint is received and stored in a file, which is located at:
- A~/ .ssh/fingerprints
- B~/ .ssh/id_dsa
- C~/ .ssh/known_hosts
- D~/ .ssh/id_dsa.pub
- E~/ .ssh/gpg.txt
2Where is the user foo’s procmail configuration stored, if home directories are stored in /home? Please enter the complete path to the file[blank_start].[blank_end]
- A/home/foo/.procmailrc
3Postfix daemons can be chroot’d by setting the chroot flag in [blank_start]_______[blank_end]. (Supply only the filename, without a path)
- Amaster.cf
4What is the default location for sendmail configuration files? (Please provide the complete path to the directory[blank_start])[blank_end]
- A/etc/mail
5What command is used to print NFS kernel statistics? (Provide the command with or without complete path)[blank_start]_______[blank_end]
- Anfsstat
6What is the name of the module in Apache that provides the HTTP Basic Authentication functionality? (Please provide ONLY the module name) [blank_start]___[blank_end]
- Amod_auth
7In which directory can all parameters available to sysctl be found? (Provide the full path)[blank_start]____[blank_end]
- A/proc/sys
8This program has 3 operating modes: copy-in mode, copy-out mode, and copy-pass mode, and is used to copy files into or out of archives. What program is this?
(Please provide the command name only, with no arguments or path.) [blank_start]___[blank_end]- Acpio
9The command [blank_start]___________[blank_end] -x foo will delete the user foo from the Samba database. (Specify the command only, no path information.)
- Asmbpasswd
10What postfix configuration setting defines the domains for which Postfix will deliver mail locally? (Please provide only the configuration setting name with no other information[blank_start])[blank_end]
- Amydomain
11What is the path to the global postfix configuration file? (Please specify the complete directory path and file name[blank_start])[blank_end]
- A/etc/postfix/main.cf
12Which Samba-related command will show all options that were not modified using smb.conf and thus are set to their default values? Please enter the command and its parameter(s):[blank_start]___[blank_end]
- Atestparm -v
13Which site-specific configuration file for the shadow login suite must be modified to log login failures? Please enter the complete path to that file._[blank_start]__[blank_end]
- A/etc/login.defs
14You are not sure whether the kernel has detected a piece of hardware in your machine. What command, without options or parameters, should be run to present the contents of the kernel ring-buffer?[blank_start]____[blank_end]
- Admesg
15You have installed some new libraries, but these are not available to programs and are not listed by lconfig -p. What file should the path to the libraries be added to, before running ldconfig? [blank_start]____[blank_end]
- Ald.so.conf
16nfsd, portmap and [blank_start]________[blank_end] daemons must be running on an NFS server.
- Amountd
17With which parameter in the smb.conf file can a share be hidden?[blank_start]__[blank_end]
- Abrowseable=no
18Please enter the complete command to create a new password file for HTTP basic authentication (/home/http/data/web _passwd) for user john.
htpasswd -c /home/http/data/web_passwd john- AVerdadero
- BFalso
19Please enter the command used to remove Kerberos tickets from the cache below.[blank_start]__[blank_end]
- Akdestroy
20All machines outside the network are able to send emails through the server to addresses not served by that server. If the server accepts and delivers the email, then it is a(n) [blank_start]_____________[blank_end]. Please enter the English term, without any punctuation.
- Aopen relay
21Which command can be used to save the current iptables rules into a file? Please enter only the command without path or parameters.[blank_start]_[blank_end]
- Aiptables-save
22Which file on a Postfix server modifies the sender address for outgoing e-mails? Please enter only the file name without the path.[blank_start]___[blank_end]
- Asender_canonical
23Running tcpdump -nli eth1 ‘icmp’ shows the following output:
11:56:35.599063 IP 192.168.123.5 > 194.25.2.129: icmp 64: echo request seq 1
11:56:35.670910 IP 194.25.2.129 > 192.168.123.5: icmp 64: echo reply seq 1
What command was used on the host 192.168.123.5, to generate this output?[blank_start]__[blank_end]- Aping
24Which command can be used to change the password for an LDAP entry?[blank_start]__[blank_end]
- Aldappasswd
25In which directory are the PAM modules stored?[blank_start]__[blank_end]
- A/lib/security
26What file should be edited to make the route command show human-readable names for networks? (Please enter the full path)[blank_start]___[blank_end]
- A/etc/networks
27Which keys are stored in the authorized_keys file?
- Apublic
- Bprivate
28To allow X connections to be forwarded from or through an SSH server, what line must exist in the sshd configuration file?
X11Forwarding yes- AVerdadero
- BFalso
29A malicious user has sent a 35MB video clip, as an attachment, to hundreds of Recipients. Looking in the outbound queue reveals that this is the only mail there.This mail can be removed with the command rm [blank_start]_______________[blank_end] * . Complete the path below.
- A/var/spool/mqueue/
30Which file, in the local file-system, is presented when the client requests http://server/~joe/index.html and the following directive is present in server’s Apache configuration file? UserDir site/html
Given that all users have their home directory in /home, please type in the FULL file name including the path.
Answer: /home/joe/site/html/index.html- AVerdadero
- BFalso
31Which port must be open on a firewall, to allow a DNS server to receive queries? (Enter only the port number).
- A56
- B63
- C8080
- D53
32The users of the local network complain that name resolution is not fast enough. Enter the command, without the path or any options, that shows the time taken to resolve a DNS query[blank_start].[blank_end]
- Adig
3337 In which configuration file can a key-file be defined to enable secure DNS zone transfers? (Please enter the file name without the path)[blank_start]__[blank_end]
- Anamed.conf
34Which type of DNS record defines which server(s) email for a domain should be sent to?
Answer: MX- AVerdadero
- BFalso
35Using only commands included with named, what is the command, with options or parameters, to make named re-read its zone files?[blank_start]_[blank_end]
- Arndc reload
36Which daemon is required on the client if an ethernet device gets its IP address from a central server?__
- Adhcp
- Bdhcpcd
- Cbootpd
- Dethd
- Edhcpd
37A network has many network printers connected and they should get their addresses using DHCP. What information from each printer is needed to always assign them the same IP address when dhcpd is used as the DHCP server?
- AMAC address
- BHost name
- CSerial number
- DFactory default IP address
- EBuilt-in network card type
38Select the alternative that shows the correct way to disable a user login (except for root)
- AThe use of the pam_nologin module along with the /etc/login configuration file
- BThe use of the pam_deny module along with the /etc/deny configuration file
- CThe use of the pam_pwdb module along with the /etc/pwdb.conf configuration file
- DThe use of the pam_console module along with the /etc/security/console.perms configuration file
- EThe use of the pam_nologin module along with the /etc/nologin configuration file
39Which command would release the current IP address leased by a DHCP server?
- Aipconfig /release
- Bifconfig –release-all
- Cdhclient -r
- Difconfig –release
- Epump –release
40Which records must be entered in a zone file in order to use "Round Robin Load Distribution" for a web server?
- Awww.example.org. 60 IN A 192.168.1.1
www.example.org. 60 IN A 192.168.1.2
www.example.org. 60 IN A 192.168.1.3 - Bwww.example.org. 60 IN A 192.168.1.1;192.168.1.2;192.168.1.3
- Cwww.example.org. 60 IN A 192.168.1-3
- Dwww.example.org. 60 IN RR 192.168.1:3
- Ewww.example.org. 60 IN RR 192.168.1.1;192.168.1.2;192.168.1.3
- Awww.example.org. 60 IN A 192.168.1.1
41Which of these tools can provide the most information about DNS queries?
- Adig
- Bnslookup
- Chost
- Dnamed-checkconf
- Enamed-checkzone
42Which command line create an SSH tunnel for POP and SMTP protocols?
- Assh- L :110 -L :25 -1 user -N mailhost
- Bssh -L 25:110 -1 user -N mailhost
- Cssh -L mailhost:110 -L mailhost:25 -1 user -N mailhost
- Dssh -L mailhost:25:110 -1 user
- Essh -L 110:mailhost:110 -L 25:mailhost:25 -1 user -N mailhost
43An iptables firewall was configured to use the target MASQUERADE to share a dedicated wireless connection to the Internet with a few hosts on the local network.
The Internet connection becomes very unstable in rainy days and users complain their connections drop when downloading e-mail or large files, while web browsing seems to be working fine.
Which change to your iptables rules could alleviate the problem?- AChange the target MASQUERADE to SNAT
- BChange the target MASQUERADE to DNAT
- CChange the target MASQUERADE to BALANCE and provide a backup Internet connection
- DChange the target MASQUERADE to REDIRECT and provide a backup Internet connection
- EChange the target MASQUERADE to BNAT
44Connecting to a remote host on the same LAN using ssh public-key authentication works but forwarding X11 doesn’t. The remote host allows access to both services. Which of the following can be the reason for that behaviour?
- AThe remote user’s ssh_config file disallows X11 forwarding
- BA different public key has to be used for X11
- CThe remote server’s sshd_config file disallows X11 forwarding
- DX11 cannot be forwarded if public-key authentication was used
- EX11 though SSH needs a special X11 server application installed
45Which THREE of the following actions should be considered when a FTP chroot jail is created?
- ACreate /dev/ and /etc/ in the chroot enviroment
- BCreate /etc/passwd in the chroot enviroment
- CCreate /var/cache/ftp in the chroot enviroment
- DCreate the user ftp in the chroot enviroment
- ECreate /usr/sbin/ in the chroot enviroment
46To be able to access the server with the IP address 10.12.34.56 using HTTPS, a rule for iptables has to be written. Given that the client host’s IP address is 192.168.43.12, which of the following commands is correct?
- Aiptables – A FORWARD -p tcp -s 0/0 -d 10.12.34.56 –dport 80 -j ACCEPT
- Biptables – A FORWARD -p tcp -s 192.168.43.12 d 10.12.34.56:443 -j ACCEPT.
- Ciptables – A FORWARD -p tcp -s 192.168.43.12 -d 10.12.34.56 –dport 443 -j ACCEPT.
- Diptables – A INPUT -p tcp -s 192.168.43.12 – d 10.12.34.56:80 -j ACCEPT.
- Eiptables – A FORWARD -p tcp -s 0/0 -d 10.12.34.56 –dport 443 -j ACCEPT.
47When the default policy for the iptables INPUT chain is set to DROP, why should a rule allowing traffic to localhost exist?
- AAll traffic to localhost must always be allowed.
- BIt doesn’t matter; iptables never affects packets addressed to localhost
- CSendmail delivers emails to localhost
- DSome applications use the localhost interface to communicate with other applications.
- Esyslogd receives messages on localhost
48A server is being used as a smurf amplifier, whereby it is responding to ICMP Echo-Request packets sent to its broadcast address. To disable this, which command needs to be run?
- Aifconfig eth0 nobroadcast
- Becho "0" > /proc/sys/net/ipv4/icmp_echo_accept_broadcasts
- Ciptables -A INPUT -p icmp -j REJECT
- Decho "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
- Eecho "1" > /proc/sys/net/ipv4/icmp_echo_nosmurf
49To allow X connections to be forwarded from or through an SSH server, what configuration keyword must be set to yes in the sshd configuration file?
- AAllowForwarding
- BForwardingAllow
- CXllForwardingAllow
- DXllForwarding
50Which of the following options are valid in /etc/exports? (Choose two.)
- Arw
- Bro
- Crootsquash
- Dnorootsquash
- Euid
51Which of the following nmap parameters scans a target for open TCP ports? (Choose two.)
- A-sO
- B-sZ
- C-sT
- D-sU
- E-sS
52Which of the following commands can be used to connect and interact with remote TCP network services?
(Choose two.)- Anettalk
- Bnc
- Ctelnet
- Dcat
- Enetmap
53Which BIND option should be used to limit the IP addresses from which slave name servers may connect?
- Aallow-zone-transfer
- Ballow-transfer
- Callow-secondary
- Dallow-slaves
- Eallow-queries
54What option for BIND is required in the global options to disable recursive queries on the DNS server by default?
- Aallow-recursive-query ( none; );
- Ballow-recursive-query off;
- Crecursion { disabled; };
- Drecursion { none; };
- Erecursion no;
55Which option within a Nginx server configuration section defines the file system path from which the content of the server is retrieved?
- Alocation
- Bhtdocs
- CDocumentRoot
- Droot
- Ebase_dir
56 What directive can be used in named.conf to restrict zone transfers to the 192.168.1.0/24 network?
- Aallow-transfer { 192.168.1.0/24; };
- Ballow-transfer { 192.168.1.0/24 };
- Callow-axfr { 192.168.1.0/24; };
- Dallow-axfr { 192.168.1.0/24 };
57To securely use dynamic DNS updates, the use of TSIG is recommended. Which TWO
- ATSIG is used for zone data encryption
- BTSIG is a signal to start a zone update
- CTSIG is used in zone files
- DTSIG is used only in server configuration
- EServers using TSIG must be in sync (time zone!)
58Which option is used to configure pppd to use up to two DNS server addresses provided by the remote server?
- Ams-dns
- Bnameserver
- Cusepeerdns
- Ddns
- ENone of the above
59A DNS server has the IP address 192.168.0.1. Which TWO of the following need to be done on a client machine to use this DNS server?
- AAdd nameserver 192.168.0.1 to /etc/resolv.conf
- BRun route add nameserver 192.168.0.1
- CRun ifconfig eth0 nameserver 192.168.0.1
- DRun echo “nameserver 192.168.1.1” >> /etc/resolv.conf
- ERun bind nameserver 192.168.1.1
60There is a restricted area in an Apache site, which requires users to authenticate against the file /srv/ www/security/site-passwd. Which command is used to CHANGE the password of existing users, without losing data, when Basic authentication is being used.
- Ahtpasswd -c /srv/www/security/site passwd user
- Bhtpasswd /srv/www/security/site-passwd user
- Chtpasswd -n /srv/www/security/site-passwd user
- Dhtpasswd -D /srv/www/security/site-passwd user
- ENone of the above
Información
- Descripción
- LPI QUESTIONS
- Autor
- Luiz Eduardo
- Idioma
- Português
- Visitas
- 84
- Historial
- Creado el 26 jul 2019 · actualizado el 26 jul 2019
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test