



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Various linux security, data management, and accessibility features. It provides information on commands and configurations related to network scanning, remote ssh access, user management, memory limits, gpg key export, file permissions, database queries, and accessibility settings. The document addresses topics such as identifying open ports, managing user permissions, sorting and grouping data in sql, and configuring keyboard and screen reader accessibility. It offers a comprehensive overview of essential linux administration and security tasks, making it a valuable resource for system administrators, developers, and users seeking to enhance the security, functionality, and accessibility of their linux systems.
Typology: Exams
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Which port does nmap scan by default? - Answers -TCP You need to run graphical apps from a remote SSH server and have them display locally on this host. Complete the command to do this. - Answers -ssh -X You want to set the maximum password aging interval for user bbyrne to 60. Complete the command to do this. - Answers -chage --maxdays 60 bbyrne There are various commands to identify users who have logged in or who are currently logged in to the system. Match each command with what it does. - Answers -w = Display who is logged in to the system and identify what they are working on last -i = Display the IP address information who = Identify which users have currently logged in to the system and from where last = Verify which users last logged in to the machine You want to set a memory limit for user bbyrne of 200000 MB. Complete the command to do this. - Answers -ulimit -m 200000 bbyrne Complete the command to do this. - Answers -gpg --output /dbyrne_pubkey.gpg -- export [email protected] You want to control screen inactivity. Click the System Settings icon that you use to access these settings. - Answers - Brightness and Lock What is the sudoers file used for? - Answers -To configure which administrative type commands are runnable by regular users and from which stations. There are various commands used to select data by joining two or more tables. Match each command to a description of what it does. - Answers -show tables command = View the required tables use command = Use the database
show columns statement = Display the structure of the tables mysql command = Launch the MySQL database prompt Which command do you use to search for special permission bit in the root-level files? - Answers -find / .perm -u+s You've been asked to create a report displaying all records and all fields from employees table. Complete the command to do this. - Answers -select * from You want to configure keyboard accessibility. Click the System Settings icon that you use to access these settings. - Answers - Universal Access Which command do you use to display open files within a given subdirectory path? - Answers -lsof -D You need to sort data returned from a select statement by customer name. Complete the command to do this. - Answers -select customername You want to group data returned from a select statement by state and count the numbers of customers in each state. Complete the command to do this. - Answers -select state, count(customers.customername) Which command do you use to display a new field with data in SQL? - Answers –select Which command should you use to display both listening and non-listening sockets on your Linux system? (Tip: enter the command as if in Command Prompt.) - netstat -a Use netstat -a to identify listening and non-listening sockets on a Linux system. A socket is an endpoint of a bidirectional communication flow across a computer network. Be aware of the other common netstat options: -l lists listening sockets. -s displays statistics for each protocol. -i displays a table of all network interfaces. Which command should you use to scan for open TCP ports on your Linux system? (Tip: enter the command as if in Command Prompt.) - nmap -sT
You want to display your IP address and port number. What command do you type? - Answers -netstat -tn You want to generate an rsa-matching public and private key pair for the currently logged in user. Complete the command to start this process. - Answers -ssh-keygen -t rsa What are examples of features that can be configured using Orca Screen Reader? - Answers --Language -Braille display -Speed the language is spoken at -Screen magnifier You are exporting the public key to a file on the root of the file system and specifying a delivery e-mail address using GnuPG. Which type of packet would the sender receive if they sent a connection request to TCP port 25 on a server with the following command applied? sudo iptables -A OUTPUT -p tcp --dport 25 -j REJECT - RST Because the packet is TCP and is blocked by the Reject action, the server would send a TCP RST packet back to the sender. ICMP Unreachable Port is sent by iptables if a UDP packet is blocked by the Reject action. A SYN packet would indicate that the server is proceeding with the connection, which would not happen with the Reject action. If it were allowed, the ACK would generally be sent with the SYN to acknowledge the initial connection while the SYN starts the next part of the TCP three-way handshake. You have configured the following rules. What is the effect? sudo iptables -A INPUT -p tcp --dport 25 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT sudo iptables -A OUTPUT -p tcp --sport 25 -m conntrack --ctstate ESTABLISHED -j ACCEPT - Allow SMTP traffic These rules would allow inbound and outbound Simple Mail Transfer Protocol (SMTP) connections on TCP port 25, which is the default port for SMTP. These rules use the Accept action, so they would not block SMTP or Secure Shell (SSH).
SSH is on TCP port 22, so these rules would not affect SSH. Which command would you use to list all of the currently defined iptables rules? - sudo iptables -L sudo iptables -L lists all of the currently defined rules. sudo iptables -A INPUT -j DROP would drop all incoming traffic. sudo /sbin/iptables-save saves changes to iptables on Ubuntu. sudo iptables -F would flush all current rules from iptables.