Home > CompTIA Linux+ > Quizzes > Exam LX0-104: CompTIA Linux+
Exam LX0-104: CompTIA Linux+
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 31% Most missed: “Which option is required to syslogd in order for it to accept remote log message…”
Exam LX0-104: CompTIA Linux+
Time left 00:00
25 Questions

1. Which of the following bash option will prevent an administrator from overwriting a file with a >"?"
2. Which GPG command is used to sign a public key? (Select TWO correct answers)
3. When configuring a Samba logon server to force Windows clients to run login.bat upon login, what setting must be added to smb.conf to force execution of this script? Assume that the path to the script is not needed. (Enter the correct parameter and value) Answer: LOGONSCRIPT=LOGIN.BAT Which command will mount the accounting share hosted on the Windows server with the NetBIOS name joeserv."
4. Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.) Answer: groupadd, /usr/sbin/groupadd Which configuration file would be edited to change default options for the OpenSSH server?"
5. The ____ command, included with OpenLDAP, will generate password hashes suitable for use in slapd.conf. (Enter the command with no options or parameters.) Answer: SLAPPASSWD What settings may a user enter when configuring Microsoft Outlook to connect to an LDAP white pages service? (Select THREE.)"
6. After specifying wins server = 192.168.0.3 in smb.conf, the nmbd daemon now fails to start. This is probably because the setting _______ = yes was also specified. Answer: WINSSUPPORT Which of the following are true of CIFS? (Choose TWO correct answers)"
7. Which configuration option can you use to prevent the root user from logging directly onto a machine using ssh?
8. What file is typically used to display messages at the login prompt when remote users telnet in to the machine?
9. Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.) Answer: /etc/sudoers When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?"
10. A. administrator has created a mapping with the following command: cryptsetup luksOpen /dev/sda1 cryptvol and has set three different keys. Which command below will delete the first key?
11. What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.) Answer: xorg.conf How is a display manager started?"
12. What command displays all aliases defined in the current shell? (Specify the command without any path information.) Answer: alias, alias -p What is the purpose of the file /etc/profile?"
13. Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.) Answer: mailq, /usr/bin/mailq, sendmail -bp, /usr/sbin/sendmail -bp, /usr/lib/sendmail -bp, Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Select THREE.)"
14. Which of the following lines in the OpenVPN server.conf file will supply a DNS server for DHCP clients to use?
15. Which of the following commands would an administrator use to create an OpenSSH authentication key?
16. Which of the following are common techniques for securing a sendmail server? (Select THREE.)
17. Which of the following find commands will print out a list of suid root files in /usr?
18. Which of the following is the BEST way to list all defined shell variables?
19. A. administrator has manually migrated local accounts to LDAP, instead of using the migration tools. When trying to authenticate as a user, an error is returned about invalid credentials. What is the most likely cause of this?
20. To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done?
21. Why is the correct configuration of a system's time zone important?
22. A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access? (Please specify the full path to the file). Answer: /etc/cron.allow Which of the following commands should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO.)"
23. What command is used to create and maintain a Basic Authentication password file for apache? (Specify only the command, with no path or arguments) Answer: htpasswd SELinux is a Linux feature that:"
24. Which of the following are builtin chains for the iptables nat table? (Select THREE.)
25. What output will the command seq 10 produce?