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
AHer login shell in /etc/passwd changes to /sbin/nologin
BA past date is written to the account expiration field in /etc/shadow
CAn ! is added to the start of the password field in /etc/shadow
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.