Free LPI 102-500 Exam Actual Questions

The questions for 102-500 were last updated On Mar 27, 2025

At ValidExamDumps, we consistently monitor updates to the LPI 102-500 exam questions by LPI. Whenever our team identifies changes in the exam questions,exam objectives, exam focus areas or in exam requirements, We immediately update our exam questions for both PDF and online practice exams. This commitment ensures our customers always have access to the most current and accurate questions. By preparing with these actual questions, our customers can successfully pass the LPIC-1 System Administrator Exam 102, Part 2 of 2, version 5.0 exam on their first attempt without needing additional materials or study guides.

Other certification materials providers often include outdated or removed questions by LPI in their LPI 102-500 exam. These outdated questions lead to customers failing their LPIC-1 System Administrator Exam 102, Part 2 of 2, version 5.0 exam. In contrast, we ensure our questions bank includes only precise and up-to-date questions, guaranteeing their presence in your actual exam. Our main priority is your success in the LPI 102-500 exam, not profiting from selling obsolete exam questions in PDF or Online Practice Test.

 

Question No. 1

Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)

Show Answer Hide Answer
Correct Answer: A

The netstat command, meaning network statistics, is a command-line utility in the Linux system to display network configuration and activity, including network connections, routing tables, interface statistics, masquerade connections, and multicast memberships1. The netstat command can display different types of network data depending on the command line option selected. Some of the common options are:

-a: This option displays active TCP connections, TCP connections with the listening state, as well as UDP ports that are being listened to.

-r: This option displays the routing table information, which is a list of rules that determine where the packets are sent.

-i: This option displays the network interface information, such as the name, MTU, RX-OK, TX-OK, etc.

-s: This option displays the network statistics by protocol, such as TCP, UDP, ICMP, IP, etc.

For example, to display the open network connections, one can run:

netstat -a

To display the routing table, one can run:

netstat -r

To display the network interface statistics, one can run:

netstat -i

To display the network statistics by protocol, one can run:

netstat -s

For more details and examples, please refer to the web search results1or the question answering results2.Reference:

https://netref.soe.ucsc.edu/node/7

https://bing.com/search?q=command+to+display+network+connections%2c+routing+tables%2c+and+interface+statistics


Question No. 2

Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?

Show Answer Hide Answer
Correct Answer: D

The best way to temporarily suspend a single user's ability to interactively login is to use the chage command to expire the user account. The chage command can modify the expiration date of a user account, which is stored in the /etc/shadow file. By setting the expiration date to a past date, the user account will be locked and the user will not be able to login. This method is temporary because the expiration date can be changed again to a future date or removed to unlock the user account. For example, to expire the user account linuxconfig, we can use the following command:

# chage -E 0 linuxconfig

This will set the expiration date to January 1, 1970, which is the epoch date. To check the expiration date of a user account, we can use the -l option:

# chage -l linuxconfig

Last password change : Aug 24, 2021

Password expires : never

Password inactive : never

Account expires : Jan 01, 1970

Minimum number of days between password change : 0

Maximum number of days between password change : 99999

Number of days of warning before password expires : 7

To remove the expiration date of a user account, we can use the -E option with an empty argument:

# chage -E '' linuxconfig

The other options are either invalid or not recommended. Adding the user name to /etc/nologin will not work, because /etc/nologin is a file that contains a message to be displayed to users who try to login when the system is down for maintenance. Changing the user's password is not a good idea, because it will affect the user's authentication and may cause security issues. Changing the user name in /etc/passwd will also affect the user's authentication and may cause inconsistencies with other files and services.Placing the command logout in the user's profile will not prevent the user from logging in, but only log them out immediately after login, which is not very elegant or secure.Reference:1: How to disable user login with Linux nologin - LinuxConfig.org2: Disable a user's login without disabling the account - Unix & Linux Stack Exchange3: How to Block or Disable Normal User Logins in Linux?- GeeksforGeeks4: How to Disable User Logins on Linux | Baeldung on Linux5: How to Disable a User in Linux - Linux Nightly6: How to deactivate or disable a user account in Ubuntu 20.04 LTS - Vitux7: chage(1) - Linux manual page


Question No. 3

What is the purpose of TCP wrapper?

Show Answer Hide Answer
Correct Answer: E

TCP wrapper is a security tool that allows you to restrict the access to a network service based on the source IP address or hostname of the client. TCP wrapper works by intercepting the incoming connection requests to a service and checking them against a set of rules defined in the/etc/hosts.allowand/etc/hosts.denyfiles. If the client is allowed, the connection is passed to the service. If the client is denied, the connection is rejected and an error message is logged.Reference:

LPI Linux Essentials: 1.5 Security and File Permissions: 1.5.3 Network Security

LPIC-1: System Administrator: 102.5 Implement basic network security: 102.5.1 TCP Wrappers