Linux Security Practices and Exam, Exams of Social Sciences

Various linux security-related topics, including configuration file management, file location, user permissions, package management, file manipulation commands, user switching, system directories, authentication mechanisms, and network troubleshooting tools. A series of multiple-choice questions and answers, which test the user's knowledge of linux security concepts and practices. The questions cover a wide range of topics, such as identifying the location of configuration files, understanding the 'locate' command, managing binary file execution, updating packages, manipulating text files, navigating the file system, managing user access to sensitive files, configuring network services, and using security-related tools. By studying this document, students can gain a comprehensive understanding of linux security principles and prepare for related exams or assessments.

Typology: Exams

2024/2025

Available from 09/18/2024

ROCKY-B
ROCKY-B 🇰🇪

4.4

(16)

40K documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LINUX SECURITY PRACTICE & EXAM
A service in the server is generating errors after changes were made in its configuration
file. You were asked to identify the issue in the configuration file and resolve it. Which of
the following directories would contain the file?
A. /home
B. /etc
C. /bin
D. /tmp - Answers -B. /etc
A new Linux user saved an important file in the system, but can't remember where. He
tries to locate the file using the "locate" command, but it doesn't appear. Which of the
following may be the cause of its "disappearance"?
A. The database used by the locate command is not up-to-date.
B. The file was saved to the /tmp directory and deleted immediately.
C. The simple user account he worked with did not have the ability to locate the file.
D. The terminal needs to be restarted to locate the file. - Answers -A. The database
used by the locate command is not up-to-date.
A Linux user downloaded a new binary to the OS, but can't run it right away. What
should she do to allow execution of the binary from any location in the system?
A. That can't be done. The binary can be executed only from within its own location.
B. She needs to have high-level privileges to execute the binary.
C. The binary files should be placed in a directory located in the PATH.
D. Nothing needs to be done. When it is downloaded, it is automatically set to be
executed from anywhere. - Answers -C. The binary files should be placed in a directory
located in the PATH.
As a junior system administrator, you were tasked with installing package updates on an
Ubuntu server. Which command would you run?
A. sudo apt-get update
B. yum upgrade
C. apt upgrade
D. dnf -y update - Answers -C. apt upgrade
Which command will output only the first five lines of the text.txt file?
A. less text.txt
B. tail -n 5 text.txt
C. head text.txt
D. head -n 5 text.txt - Answers -D. head -n 5 text.txt
Which directory does cd / navigate to?
A. Root directory
B. Parent of the current directory
C. Previous directory
pf3
pf4
pf5

Partial preview of the text

Download Linux Security Practices and Exam and more Exams Social Sciences in PDF only on Docsity!

LINUX SECURITY PRACTICE & EXAM

A service in the server is generating errors after changes were made in its configuration file. You were asked to identify the issue in the configuration file and resolve it. Which of the following directories would contain the file? A. /home B. /etc C. /bin D. /tmp - Answers -B. /etc A new Linux user saved an important file in the system, but can't remember where. He tries to locate the file using the "locate" command, but it doesn't appear. Which of the following may be the cause of its "disappearance"? A. The database used by the locate command is not up-to-date. B. The file was saved to the /tmp directory and deleted immediately. C. The simple user account he worked with did not have the ability to locate the file. D. The terminal needs to be restarted to locate the file. - Answers -A. The database used by the locate command is not up-to-date. A Linux user downloaded a new binary to the OS, but can't run it right away. What should she do to allow execution of the binary from any location in the system? A. That can't be done. The binary can be executed only from within its own location. B. She needs to have high-level privileges to execute the binary. C. The binary files should be placed in a directory located in the PATH. D. Nothing needs to be done. When it is downloaded, it is automatically set to be executed from anywhere. - Answers -C. The binary files should be placed in a directory located in the PATH. As a junior system administrator, you were tasked with installing package updates on an Ubuntu server. Which command would you run? A. sudo apt-get update B. yum upgrade C. apt upgrade D. dnf -y update - Answers -C. apt upgrade Which command will output only the first five lines of the text.txt file? A. less text.txt B. tail -n 5 text.txt C. head text.txt D. head -n 5 text.txt - Answers -D. head -n 5 text.txt Which directory does cd / navigate to? A. Root directory B. Parent of the current directory C. Previous directory

D. Home directory - Answers -A. Root directory Which of the following files stores hashed passwords in Linux? A. /etc/shadow B. /tmp/password C. /etc/passwd D. /etc/hosts - Answers -A. /etc/shadow Which of the following protocols are unsecure? (Select two) A. SSH B. SCP C. FTP D. Telnet - Answers -C. FTP D. Telnet What is the su command used for? A. To run commands as a simple user B. To run applications C. To switch users D. To create a super-user D. To shut down the system - Answers -C. To switch users What is /tmp the name of? A. Hidden file B. Configuration file C. Directory D. Read-only file - Answers -C. Directory What type of users can access the /etc/shadow file? A. Any user B. Only superusers - Answers -B. Only superusers Which open-source software is used in Linux to provide SMB based services? A. Top B. MD5sum C. Samba D. Named - Answers -C. Samba By default, Apache serves HTTP content on which port? A. 8443 B. 8080 C. 65537 D. 443 E. 80 - Answers -E. 80 Which file is edited in Linux to configure the automation of tasks?

An employee in your company submitted a support ticket regarding connectivity speed when trying to access a specific server. Which of the following network testing tools can you use to find the cause of the slowdown in the route to the server? A. Ifconfig B. Ping C. Nslookup D. Traceroute - Answers -D. Traceroute A network administrator activated the SAMBA service in a Linux machine. He then changed the configuration file to allow guest login. While testing the new configuration, he was not able to log in as a guest. A status check confirmed that the system is up and running. What may be the cause? A. The service needs to be restarted to apply the changes. B. There is an error in the configuration file. C. The guest login option is disabled by default. D. The SMB version is outdated. - Answers -A. The service needs to be restarted to apply the changes. You were asked to create a script that will back up and archive all user desktop directories in a Linux machine. Which of the following tools will you use in the script to back up the directories? A. md5sum B. netstat C. tar D. LinEnum - Answers -C. tar A Bash script is run by a user to access /etc/shadow and fetch a hashed password. When a different user runs the script,however, the execution fails. What could be the problem? A. Other users do not have high enough level permissions to run the Bash script. B. Other users do not have the execute privilege to run the Bash script. C. Other users do not have the read privilege to run the Bash script. D. Other users are sudo users. - Answers -B. Other users do not have the execute privilege to run the Bash script. A new Linux user selected the Live option upon installation.He then created a holiday schedule and saved it in the home directory before turning off the computer. The next day he turned the computer on and could not find the file.What may be the reason? A. The home directory is used for temporary files that are deleted by the system. B. Every Linux OS cleans all new files upon reboot. C. The user chose Live mode, which doesn't retain its state. D. The computer didn't have enough RAM to save the file. - Answers -C. The user chose Live mode, which doesn't retain its state.

A user presses the letter 'e' on the keyboard during the Linux boot process, and was prompted to enter a password. Which security mechanism was implemented? A. Grub encryption. B. Disk encryption. C. Pluggable authentication module. D. No mechanism, it is the default functionality of Linux. - Answers -A. Grub encryption. Which of the following commands shows the path of the current working directory? A. which B. cat C. pwd D. ls -l - Answers -C. pwd What is PAM primarily used for? A. Linux authentication B. Linux Permissions C. Linux boot selection D. Linux networking - Answers -A. Linux authentication Which of the following is the right command that would secure copy all the text files in the current working directory to the user's remote home folder? A. scp all.txt [email protected]:/home/johnd B. scp ?.txt [email protected]:/home/johnd C. scp *.txt [email protected]:/var/log D. scp *.txt [email protected]:/home/johnd - Answers -D. scp *.txt [email protected]:/home/johnd