0 of 16 lessons done
Course classroom
CompTIA Linux+ XK0-006

Day 4 of 15

Day 4 · Users, groups and sudo

New employees are starting: create their accounts, organize the groups, control passwords and hand out sudo carefully.

⏱ 2 hours 🧪 16 terminal tasks ✅ 10 review questions 🔒 Part of the full course

By the end of this day you will be able to

  • Tell root, system or service accounts and user accounts apart by their UID.
  • Read /etc/passwd, /etc/shadow and /etc/group field by field.
  • Create, modify, lock and delete accounts with useradd, usermod, passwd and userdel.
  • Control password and account expiration with chage and /etc/login.defs.
  • Manage groups and memberships without removing anyone from their groups by mistake.
  • Grant privileges with sudo and sudoers.d following the principle of least privilege.

Topics

  • UID, GID and account types
  • /etc/passwd, /etc/shadow, /etc/group
  • useradd, adduser and /etc/skel
  • usermod -aG, -L, -s
  • passwd and chage
  • userdel and orphaned files
  • groupadd, groupdel, gpasswd
  • id, who, w, last, getent
  • sudo, /etc/sudoers, sudoers.d and visudo
  • su, sudo -i and best practices

This lesson is part of the full course

It includes the full explanation, 16 terminal tasks that check themselves and 10 review questions. If you already bought the course, sign in and pick up where you left off.

Full course: $99 (regular price $149) · one payment · 12 months of access

Already paid? Sign in with the email you used to buy: we send you a 6-digit code, no password.

Want to try it first? Take a free trial of the course. Questions? Message us on WhatsApp.

Loading your lesson…

Go to the course classroom

See all the lessons in the course

The companies, people and data in the course stories are fictional; any resemblance to reality is coincidental.