cert
cert-1
cert-2

Pass LPI 102-500 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
102-500 Exam - Verified By Experts
102-500 Premium Bundle
$29.98

102-500 Premium Bundle

$79.99
$109.97
  • Premium File 120 Questions & Answers. Last update: Nov 13, 2026
  • Training Course 126 Video Lectures
  • Study Guide 962 Pages
 
$109.97
$79.99
accept 15 downloads in last 7 days
block-screenshots
Purchase LPI 102-500 Exam Training Products Individually
LPI 102-500 Premium File
Premium File 120 Q&A
$76.99$69.99
LPI 102-500 Video Training Course
Training Course 126 Lectures
$21.99 $19.99
LPI 102-500 PDF Study Guide
Study Guide 962 Pages
$21.99 $19.99
LPI 102-500 Practice Test 22

Question 210

A Linux administrator investigates the following system incident: An administrator edits /etc/group directly and creates mismatched group entries while a directory service supplies additional account data. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.

  1. Create the intended user with a suitable home directory, shell and UID policy using useradd with the needed options, and verify ownership and skeleton-file deployment.
  2. Compare `getent passwd username`, `getent group groupname`, `id` and the nsswitch database configuration, checking authoritative sources.
  3. Run `locale`, inspect LANG and LC_* values, compare representative command output under LC_ALL=C, and test number and sort handling.
  4. Use `getent` and supported user or group administration tools to inspect the effective NSS account database without assuming all identities exist in local files.
  5. Assume every Linux user must appear literally in /etc/passwd and that grepping a local file is equivalent to a Name Service Switch lookup.

Explanation

Correct Answers

B:

Most direct verification evidence: Compare `getent passwd username`, `getent group groupname`, `id` and the nsswitch database configuration, checking authoritative sources. Linux principle: Name Service Switch may combine local passwd, group and directory sources; local text files do not necessarily describe all recognized accounts.

D:

Recommended administrative action: Use `getent` and supported user or group administration tools to inspect the effective NSS account database without assuming all identities exist in local files. Linux principle: Name Service Switch may combine local passwd, group and directory sources; local text files do not necessarily describe all recognized accounts.

Incorrect Answers

A:

That option would create the intended user with a suitable home directory, shell and UID policy using useradd with the needed options, and verify ownership and skeleton-file deployment, but it addresses a different concern. Name Service Switch may combine local passwd, group and directory sources; local text files do not necessarily describe all recognized accounts.

C:

That option would run `locale`, inspect LANG and LC_* values, compare representative command output under LC_ALL=C, and test number and sort handling, but it addresses a different concern. Name Service Switch may combine local passwd, group and directory sources; local text files do not necessarily describe all recognized accounts.

E:

This shortcut is unsafe for the present Linux issue: Assume every Linux user must appear literally in /etc/passwd and that grepping a local file is equivalent to a Name Service Switch lookup. Name Service Switch may combine local passwd, group and directory sources; local text files do not necessarily describe all recognized accounts.

Question 211

On a production Linux workstation or server, a technician observes: A user places a system-style cron entry containing a username in their personal crontab, causing the username to be parsed as part of the command. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.

  1. Review and apply the appropriate /etc/cron.allow and /etc/at.allow or deny policies with the scheduler's supported access rules.
  2. Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format.
  3. Choose the appropriate LANG and LC_* settings and use LC_ALL=C only where a predictable locale-independent parsing environment is needed.
  4. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.

Explanation

Correct Answer

B:

Recommended administrative action: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Incorrect Answers

A:

That option would review and apply the appropriate /etc/cron.allow and /etc/at.allow or deny policies with the scheduler's supported access rules, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

C:

That option would choose the appropriate LANG and LC_* settings and use LC_ALL=C only where a predictable locale-independent parsing environment is needed, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

That option would assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Question 212

During an LPIC-1 practice lab, the operator encounters this condition: A user places a system-style cron entry containing a username in their personal crontab, causing the username to be parsed as part of the command. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.

  1. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.
  2. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.
  3. Locale category variables can override LANG for specific behaviors; LC_ALL overrides category settings, affecting messages, sorting and number formats.
  4. /etc/passwd stores user identity and shell information, while protected password hashes and aging fields reside in /etc/shadow on shadow-password systems.

Explanation

Correct Answer

B:

Relevant Linux operating principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Incorrect Answers

A:

That option would assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions, but it addresses a different concern. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format.

C:

This alternative addresses Locale category precedence and stable parsing, not the specific issue of User crontab versus system crontab fields: Locale category variables can override LANG for specific behaviors; LC_ALL overrides category settings, affecting messages, sorting and number formats. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

D:

This alternative addresses Shadow password entries and password aging, not the specific issue of User crontab versus system crontab fields: /etc/passwd stores user identity and shell information, while protected password hashes and aging fields reside in /etc/shadow on shadow-password systems. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

Question 213

A helpdesk escalation describes this Linux behavior: A user places a system-style cron entry containing a username in their personal crontab, causing the username to be parsed as part of the command. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.

  1. Inspect getent passwd for the account, stat the home directory and review useradd defaults, ownership and login shell.
  2. Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command.
  3. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.
  4. Inspect account UID and shell, service unit User setting, writable paths, group membership and whether interactive authentication is possible.

Explanation

Correct Answer

B:

Most direct verification evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Incorrect Answers

A:

That option would inspect getent passwd for the account, stat the home directory and review useradd defaults, ownership and login shell, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

C:

This shortcut is unsafe for the present Linux issue: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

That option would inspect account UID and shell, service unit User setting, writable paths, group membership and whether interactive authentication is possible, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Question 214

An operations handoff identifies this problem: A user places a system-style cron entry containing a username in their personal crontab, causing the username to be parsed as part of the command. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.

  1. The intended user executes the scheduled command at the chosen time with no stray username token.
  2. The command runs exactly once at the intended window or the revoked queue item no longer exists.
  3. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.
  4. The password is updated or expiration policy enforced as approved while shadow hashes remain inaccessible to unprivileged users.

Explanation

Correct Answer

A:

Observable acceptance criterion: The intended user executes the scheduled command at the chosen time with no stray username token. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Incorrect Answers

B:

This alternative addresses One-time at jobs and queue management, not the specific issue of User crontab versus system crontab fields: The command runs exactly once at the intended window or the revoked queue item no longer exists. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

C:

This shortcut is unsafe for the present Linux issue: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

This alternative addresses Shadow password entries and password aging, not the specific issue of User crontab versus system crontab fields: The password is updated or expiration policy enforced as approved while shadow hashes remain inaccessible to unprivileged users. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

Question 215

A team maintaining a Linux host reports: A user places a system-style cron entry containing a username in their personal crontab, causing the username to be parsed as part of the command. Which misleading assumption MOST directly contributes to this failure and should be rejected? Select ONE best answer.

  1. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.
  2. Assume cron.allow and at.allow are interchangeable and that denying one scheduler necessarily blocks access to the other.
  3. Assume cron automatically sources every user's interactive ~/.bashrc and inherits the login terminal's exported desktop variables.
  4. Give every daemon root-level sudo and a shared interactive password because background processes cannot run under a restricted system account.

Explanation

Correct Answer

A:

Reject this specific misconception: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. It incorrectly assumes behavior that conflicts with the observed Linux conditions.

Incorrect Answers

B:

That option would assume cron.allow and at.allow are interchangeable and that denying one scheduler necessarily blocks access to the other, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

C:

That option would assume cron automatically sources every user's interactive ~/.bashrc and inherits the login terminal's exported desktop variables, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

This alternative addresses System service accounts and least privilege, not the specific issue of User crontab versus system crontab fields: Give every daemon root-level sudo and a shared interactive password because background processes cannot run under a restricted system account. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

Question 216

While verifying a Linux change request, an engineer finds: An operator copies an entry from `/etc/crontab` to `crontab -e` and expects its sixth user field to remain valid. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.

  1. Submit the one-off command with `at`, inspect scheduled items using `atq`, and remove an unwanted job using `atrm`.
  2. Apply the appropriate account lock or expiration, disable alternate authentication paths when needed, then remove the user and files only under approved retention policy.
  3. Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format.
  4. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.

Explanation

Correct Answer

C:

Recommended administrative action: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format.

Incorrect Answers

A:

This alternative addresses One-time at jobs and queue management, not the specific issue of User crontab versus system crontab fields: Submit the one-off command with `at`, inspect scheduled items using `atq`, and remove an unwanted job using `atrm`. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

B:

That option would apply the appropriate account lock or expiration, disable alternate authentication paths when needed, then remove the user and files only under approved retention policy, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

This shortcut is unsafe for the present Linux issue: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Question 217

A Linux administrator investigates the following system incident: An operator copies an entry from `/etc/crontab` to `crontab -e` and expects its sixth user field to remain valid. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.

  1. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.
  2. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.
  3. Locking a password is not necessarily identical to disabling every authentication method, and deprovisioning accounts differs from deleting all associated data.
  4. cron and at can enforce distinct user-access controls, and the presence of an allow file often changes who may submit jobs.

Explanation

Correct Answer

B:

Relevant Linux operating principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Incorrect Answers

A:

This shortcut is unsafe for the present Linux issue: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. It cannot establish a safe correction. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

C:

This alternative addresses Account locking suspension and safe removal, not the specific issue of User crontab versus system crontab fields: Locking a password is not necessarily identical to disabling every authentication method, and deprovisioning accounts differs from deleting all associated data. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

D:

This alternative addresses Cron and at user-access allow deny policies, not the specific issue of User crontab versus system crontab fields: cron and at can enforce distinct user-access controls, and the presence of an allow file often changes who may submit jobs. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

Question 218

On a production Linux workstation or server, a technician observes: An operator copies an entry from `/etc/crontab` to `crontab -e` and expects its sixth user field to remain valid. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.

  1. Compare `id` and getent group output before and after changes and test a fresh login for access to both old and new groups.
  2. Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command.
  3. Run `locale`, inspect LANG and LC_* values, compare representative command output under LC_ALL=C, and test number and sort handling.
  4. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.

Explanation

Correct Answer

B:

Most direct verification evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command.

Incorrect Answers

A:

That option would compare `id` and getent group output before and after changes and test a fresh login for access to both old and new groups, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

C:

That option would run `locale`, inspect LANG and LC_* values, compare representative command output under LC_ALL=C, and test number and sort handling, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

This shortcut is unsafe for the present Linux issue: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. It cannot establish a safe correction. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

Question 219

During an LPIC-1 practice lab, the operator encounters this condition: An operator copies an entry from `/etc/crontab` to `crontab -e` and expects its sixth user field to remain valid. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.

  1. The password is updated or expiration policy enforced as approved while shadow hashes remain inaccessible to unprivileged users.
  2. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.
  3. The intended user executes the scheduled command at the chosen time with no stray username token.
  4. The new principal resolves correctly and has an accessible correctly owned home and intended login environment.

Explanation

Correct Answer

C:

Observable acceptance criterion: The intended user executes the scheduled command at the chosen time with no stray username token.

Incorrect Answers

A:

This alternative addresses Shadow password entries and password aging, not the specific issue of User crontab versus system crontab fields: The password is updated or expiration policy enforced as approved while shadow hashes remain inaccessible to unprivileged users. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

B:

This shortcut is unsafe for the present Linux issue: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

This alternative addresses Creating users and provisioning home directories, not the specific issue of User crontab versus system crontab fields: The new principal resolves correctly and has an accessible correctly owned home and intended login environment. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column. Appropriate response: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Root-cause evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Independent acceptance: The intended user executes the scheduled command at the chosen time with no stray username token.

Question 220

A helpdesk escalation describes this Linux behavior: An operator copies an entry from `/etc/crontab` to `crontab -e` and expects its sixth user field to remain valid. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.

  1. Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command.
  2. Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions.
  3. Use `getent` and supported user or group administration tools to inspect the effective NSS account database without assuming all identities exist in local files.
  4. Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format.
  5. Inspect the at queue and service status, verify the planned timestamp and run a safe one-time test.

Explanation

Correct Answers

A:

Most direct verification evidence: Inspect `crontab -l` and the corresponding system file and test the schedule with a harmless logged command. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

D:

Recommended administrative action: Use five time fields followed by a command in a user crontab, and include the user field only in the appropriate system crontab or /etc/cron.d format. Linux principle: Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

Incorrect Answers

B:

This shortcut is unsafe for the present Linux issue: Assume the sixth username column is mandatory in both per-user crontabs and system-wide cron definitions. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

C:

That option would use `getent` and supported user or group administration tools to inspect the effective NSS account database without assuming all identities exist in local files, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

E:

That option would inspect the at queue and service status, verify the planned timestamp and run a safe one-time test, but it addresses a different concern. Per-user cron entries inherit the owner identity and do not contain a username field; system crontab entries add a separate user column.

LPI Level 1 (102-500) Practice Tests