↓ Try a sample question (with explanation)

Lpi · Practice questions

102-500 LPIC-1 Exam 102-500 (Version 5.0)

Study 98 102-500 LPIC-1 Exam 102-500 (Version 5.0) practice questions with explanations. 20 of them are free to try, no sign-up needed.

Buy to unlock all questions, full reading mode and PDFs.

About this question bank

Questions
98 in total
Free to try
20 questions (no sign-up)
Exam domains
6 domains
Price
JPY 1,500 (≈ US$10; shown in your local currency at checkout) · one-time payment · 3 months
PDF
Japanese–English · Chinese–English · Korean–English · English (for buyers)
Data version
2026-12

About this exam

One of the two exams that make up LPIC-1 from the Linux Professional Institute (LPI); passing one of 101 and 102 and then the other within five years earns LPIC-1. It covers shells and scripting, user interfaces and desktops, administrative tasks, essential system services, networking fundamentals, and security.

Try a sample question

This is an original sample question written by itmoshi based on the exam objectives.

Employee alice is leaving. To stop her from logging in with a password without deleting the account, you run usermod -L as shown in the exhibit. alice is a local user whose unlocked password hash is stored in /etc/shadow. What changes, and in which file?

Exhibit
# usermod -L alice
  1. AHer login shell in /etc/passwd changes to /sbin/nologin
  2. BA past date is written to the account expiration field in /etc/shadow
  3. CAn ! is added to the start of the password field in /etc/shadow
  4. DThe x in the password field of /etc/passwd is replaced with *
Show answer and explanation

Answer:C An ! is prepended to the encrypted password in /etc/shadow.

Why it is correct

usermod -L (lock) puts an ! in front of the encrypted password in the second field of /etc/shadow. No password typed at login can then match the hash, so password logins fail. The original hash is still there, so usermod -U removes the ! and the old password works again.

The other options

  • ✗ A Changing the login shell is done with usermod -s (or chsh). It is used, for example, on service accounts that should never log in interactively.
  • ✗ B The account expiration date (the 8th field) is set with usermod -e or chage -E. Use it when the whole account should stop working after a given date.
  • ✗ D The x in /etc/passwd just means the password lives in /etc/shadow, and usermod -L does not touch it. The lock mark goes into /etc/shadow.

Key takeaway

usermod -L / passwd -l → ! before the hash in shadow (only the password is disabled; undo with -U / -u). usermod -e / chage -E → whole account expires. usermod -s /sbin/nologin → no interactive login.

Try 20 questions like this for free

Most frequent topics

  1. Customizing and using the shell environment11 questions
  2. Managing user and group accounts and related system files10 questions
  3. Persistent network configuration9 questions
  4. Fundamentals of internet protocols7 questions
  5. System logging7 questions
  6. Maintaining system time7 questions

Number of questions per topic among the 98 in this bank (top topics), as classified by itmoshi.

Exam domains

  1. Shells and Shell Scripting15 questions
  2. User Interfaces and Desktops7 questions
  3. Administrative Tasks20 questions
  4. Essential System Services20 questions
  5. Networking Fundamentals24 questions
  6. Security12 questions

Other Lpi exams

← All exams

itmoshi is an unofficial study service and is not affiliated with Lpi or any exam provider.