CompTIA · Linux+ XK0-006
Users and groups
Linux+ XK0-006 · Lesson 9 of 28 · 1:07:15
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
In this lesson
Prepare for the Linux+ XK0-006 exam (CompTIA Linux+ V8). In this lesson: account files (/etc/passwd, /etc/shadow, /etc/group), UIDs and GIDs, user, system, and service accounts, creating, changing, and deleting accounts, locking and expiring them (passwd, usermod, chage), listing who is who (id, groups, getent, who, last), and account templates, with Pinecrest Media, a fictional video streaming company, as the running example. Includes three original practice questions.
Preview the topics
- A normal user runs passwd, and the program writes the new hash to /etc/shadow, a file that only root can change. Which identity lets the program do that?
- A contractor leaves today. The account must refuse every login, including SSH keys, but the files must stay for a review. What should the admin run?
- Every new editor account must start with the same .bashrc, and a readme file about the storage rules, without any extra step. Where should the admin put those files?