sudo & PAM
sudoers syntax, NOPASSWD, visudo, PAM modules, pam_faillock, and /etc/pam.d structure.
Overview
Overview sudo and PAM are the two central pillars of privilege management and authentication on Linux systems. sudo controls who can run what commands as which user, while PAM (Pluggable Authentication Modules) controls how users authenticate. The two work together: when sudo needs a password, it asks PAM to check it.
Key concepts
- visudo
- NOPASSWD
- sudo -l
- /etc/pam.d/
- pam_faillock
- pam_limits
Interview questions
- Walk through the sudoers file format and set up a deployment user that can restart a specific service without a password.
- How do you configure account lockout after failed SSH login attempts using PAM?
Sign up free to read the full topic
More Linux topics
Start free on Cariara · Coding problems · System design studio