LPI C-1 Exam 102, Part 2 of 2, version 5.0 102-500 Exam Questions in PDF

Free LPI 102-500 Dumps Questions (page: 6)

What is the purpose of the Sticky Keys feature in X?

  1. To assist users who have difficulty holding down multiple keys at once
  2. To prevent repeated input of a single character if the key is held down
  3. To ignore brief keystrokes according to a specified time limit
  4. To repeat the input of a single character

Answer(s): A

Explanation:

The Sticky Keys feature in X is an accessibility option that allows users to press modifier keys (such as Ctrl, Alt, Shift, or the Windows key) one at a time, instead of holding them down simultaneously, to perform keyboard shortcuts. For example, to copy something, a user can press Ctrl, release it, and then press C, instead of pressing Ctrl+C together. This can be helpful for users who have difficulty pressing multiple keys at once, or who prefer not to do so.


Reference:

https://www.howtogeek.com/739764/how-to-turn-off-sticky-keys-on-windows-10/ https://geekflare.com/using-sticky-keys-in-windows/



Why is the xhost program considered dangerous to use?

  1. It makes it difficult to uniquely identify a computer on the network.
  2. It allows easy access to your X server by other users.
  3. It logs sensitive information to syslog.
  4. It makes your computer share network resources without any authentication.
  5. It is a graphical DNS tool with known exploits.

Answer(s): B

Explanation:

The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server1. In the case of hosts, this provides a rudimentary form of privacy control and security. It is only sufficient for a workstation (single user) environment, although it does limit the worst abuses1. However, if xhost is used to grant access to everyone, even if they aren't on the list (i.e., access control is turned off), then any user on the network can connect to your X server and monitor your keystrokes, capture your screen, or run malicious programs2. This is why xhost is considered dangerous to use and should be avoided in favor of more secure methods, such as xauth or ssh23.


Reference:

xhost linux command man page - commandlinux.com
Linux Xhost Command Help and Examples - Computer Hope xhost(1) -- Arch manual pages



An administrator wants to determine the geometry of a particular window in X, so she issues the __________ -metric command and then clicks on the window.

  1. /usr/bin/xwininfo,
    xwininfo

Answer(s): A

Explanation:

The xwininfo command is a utility for displaying information about windows in X. It can show various attributes of a window, such as its location, size, depth, border width, visual class, colormap, map state, and event masks. The -metric option specifies that all dimensions should be displayed in metric units (millimeters) rather than pixels. By issuing the xwininfo -metric command and then clicking on a window, the administrator can determine the geometry of that window, including the decorations, in millimeters.


Reference:

xwininfo(1) -- Arch manual pages
[command line -



On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?

  1. When KDM starts
  2. When a user's X session exits
  3. When KDM crashes
  4. When X is restarted
  5. When X crashes

Answer(s): B

Explanation:

The /etc/kde4/kdm/Xreset script is a script that runs as root after a user's X session exits. It can be used to perform some cleanup tasks or other actions that need to be done when the user logs out of the graphical environment. For example, it can reassign the ownership of the console to root, or shut down the system if desired. The /etc/kde4/kdm/Xreset script is part of the KDE Display Manager (kdm), which is a graphical login manager for X. KDM can be configured to run this script by setting the Reset key in the [X-*-Core] section of the /etc/kde4/kdm/kdmrc configuration file.


Reference:

kdm.options - configuration options for X display manager kdm(1) -- kdm -- Debian jessie -- Debian Manpages debian - How to get system to shutdown when Xorg is quit? - Unix ...



Which of the following lines is an example of a correct setting for the DISPLAY environment variable?

  1. hostname:displayname
  2. hostname:displaynumber
  3. hostname/displayname
  4. hostname/displaynumber
  5. hostname

Answer(s): B

Explanation:

The correct format for the DISPLAY environment variable is hostname:displaynumber.screennumber, where hostname is the name of the computer where the X server runs, displaynumber is a sequence number (usually 0) that identifies a display, and screennumber is the number of the screen within that display (usually 0). The screennumber can be omitted if it is 0. For example, localhost:0 or myhost:1.0 are valid values for the DISPLAY variable. The other options are either missing the colon, using the wrong separator, or not specifying the display number.


Reference:

X11 - DISPLAY (environment variable) - Datacadamia x11 - How can I specify a display? - Stack Overflow
What is the $DISPLAY environment variable? - Ask Ubuntu



Which of the following steps prevents a user from obtaining an interactive login session?

  1. Run the command chsh -s /bin/false with the user name.
  2. Set the UID for the user to 0.
  3. Remove the user from the group staff.
  4. Add the user to /etc/noaccess.
  5. Create a .nologin file in the user's home directory.

Answer(s): A

Explanation:

Running the command chsh -s /bin/false with the user name will change the user's login shell to /bin/false, which is a program that does nothing and returns a non-zero exit code. This means that the user will not be able to execute any commands or start an interactive shell session. This is a common way to disable a user's login without disabling the account completely, which can be useful for users who only need to access the system via scp, sftp, or other non-interactive services.

However, this method does not prevent the user from authenticating with the system, and it may not work with some services that do not rely on the login shell, such as ssh with a forced command. Therefore, it is not a foolproof way to secure the system from unauthorized access.


Reference:

1234



Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)

  1. /etc/at.deny

Answer(s): A

Explanation:

The /etc/at.deny file specifies the user accounts that can NOT submit jobs via at or batch. The format of the file is a list of usernames, one on each line.
Whitespace is not permitted. The superuser may always use at. If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use at. If /etc/at.allow does not exist, /etc/at.deny is checked12. The at and batch commands use the files /usr/lib/cron/at.allow and /usr/lib/cron/at.deny to restrict usage on some systems3.


Reference:

at.allow(5) - Linux man page at.deny(5) [linux man page] - The UNIX and Linux Forums
The at.allow and at.deny files - IBM



Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

  1. *
  2. -
  3. s
  4. x

Answer(s): D

Explanation:

The password field of /etc/passwd is used to store the user's encrypted password or a special character that indicates how the password is stored. In older Linux systems, the user's encrypted password was stored in the /etc/passwd file. On most modern systems, this field is set to x, and the user password is stored in the /etc/shadow file12. The /etc/shadow file is more secure than the /etc/passwd file because it is readable only by the root user and not by regular users1. The other options are not valid characters for the password field of /etc/passwd.


Reference:

Understanding the /etc/passwd File | Linuxize
Understanding the /etc/passwd File - GeeksforGeeks



Share your comments for LPI 102-500 exam with other users:

N
Not Robot
5/14/2023 5:33:00 PM

are these comments real

K
kriah
9/4/2023 10:44:00 PM

please upload the latest dumps

E
ed
12/17/2023 1:41:00 PM

a company runs its workloads on premises. the company wants to forecast the cost of running a large application on aws. which aws service or tool can the company use to obtain this information? pricing calculator ... the aws pricing calculator is primarily used for estimating future costs

M
Muru
12/29/2023 10:23:00 AM

looks interesting

T
Tech Lady
10/17/2023 12:36:00 PM

thanks! that’s amazing

M
Mike
8/20/2023 5:12:00 PM

the exam dumps are helping me get a solid foundation on the practical techniques and practices needed to be successful in the auditing world.

N
Nobody
9/18/2023 6:35:00 PM

q 14 should be dmz sever1 and notepad.exe why does note pad have a 443 connection

M
Muhammad Rawish Siddiqui
12/4/2023 12:17:00 PM

question # 108, correct answers are business growth and risk reduction.

E
Emmah
7/29/2023 9:59:00 AM

are these valid chfi questions

M
Mort
10/19/2023 7:09:00 PM

question: 162 should be dlp (b)

E
Eknath
10/4/2023 1:21:00 AM

good exam questions

N
Nizam
6/16/2023 7:29:00 AM

I have to say this is really close to real exam. Passed my exam with this.

P
poran
11/20/2023 4:43:00 AM

good analytics question

A
Antony
11/23/2023 11:36:00 AM

this looks accurate

E
Ethan
8/23/2023 12:52:00 AM

question 46, the answer should be data "virtualization" (not visualization).

N
nSiva
9/22/2023 5:58:00 AM

its useful.

R
Ranveer
7/26/2023 7:26:00 PM

Pass this exam 3 days ago. The PDF version and the Xengine App is quite useful.

S
Sanjay
8/15/2023 10:22:00 AM

informative for me.

T
Tom
12/12/2023 8:53:00 PM

question 134s answer shoule be "dlp"

A
Alex
11/7/2023 11:02:00 AM

in 72 the answer must be [sys_user_has_role] table.

F
Finn
5/4/2023 10:21:00 PM

i appreciated the mix of multiple-choice and short answer questions. i passed my exam this morning.

A
AJ
7/13/2023 8:33:00 AM

great to find this website, thanks

C
Curtis Nakawaki
6/29/2023 9:11:00 PM

examination questions seem to be relevant.

U
Umashankar Sharma
10/22/2023 9:39:00 AM

planning to take psm test

E
ED SHAW
7/31/2023 10:34:00 AM

please allow to download

A
AD
7/22/2023 11:29:00 AM

please provide dumps

A
Ayyjayy
11/6/2023 7:29:00 AM

is the answer to question 15 correct ? i feel like the answer should be b

B
Blessious Phiri
8/12/2023 11:56:00 AM

its getting more technical

J
Jeanine J
7/11/2023 3:04:00 PM

i think these questions are what i need.

A
Aderonke
10/23/2023 2:13:00 PM

helpful assessment

T
Tom
1/5/2024 2:32:00 AM

i am confused about the answers to the questions. do you know if the answers are correct?

V
Vinit N.
8/28/2023 2:33:00 AM

hi, please make the dumps available for my upcoming examination.

S
Sanyog Deshpande
9/14/2023 7:05:00 AM

good practice

T
Tyron
9/8/2023 12:12:00 AM

so far it is really informative

AI Tutor 👋 I’m here to help!