Mission 72

Sudoers review

Read a simulated sudoers drop-in without granting power.

Permissions and users
7 minutes Admin Lesson 72 of 360
catgrep
Lesson 72 of 360 0/360 lessons 0/17 missions Permissions and users · 7 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 7 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Read sudoers

Run cat /etc/sudoers.d/learners.

cat /etc/sudoers.d/learners
Search NOPASSWD

Run grep NOPASSWD /etc/sudoers.d/learners.

grep NOPASSWD /etc/sudoers.d/learners
Confirm user

Run whoami.

whoami
Lesson support

What to notice while you play.

Objective

Inspect a sudoers-style rule safely.

Hint

Search for NOPASSWD after reading the file.

Why it matters

Sudo rules are high-impact security controls.

Common mistakes
  • Assuming sudo means unrestricted access.
  • Changing privilege rules casually.
Reference

Commands in this lesson.

cat <file>

Print text file contents.

grep [-i] <text> <file>

Find literal text inside a file.