NOPASSWD
A sudoers tag that lets the listed commands run through sudo without asking for the user's password.
In more detail
It applies to the commands after it on the same line. Use it for narrow command lists, such as restarting one service, never for ALL.
Example
%webops ALL=(root) NOPASSWD: /usr/bin/systemctl restart httpdRelated terms
- sudoers file — The configuration file, /etc/sudoers plus files in /etc/sudoers.d, that says who may run which commands as which user through sudo.
- sudo — A command that runs another command with administrator (root) rights after checking you are allowed to.
Taught in
- Privileged Access: sudo Rules In Drop-In Files — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: People, Packages And Time — Red Hat Certified System Administrator (EX200) Exam Prep
- The Pager Command That Opened A Root Shell: sudo, su And Least Privilege — CompTIA Linux+ (XK0-006) Exam Prep
- Security Rounds: Special Bits, Logins, Ports And sudo — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Privilege Escalation: sudo Rules And become — RHCE in Ansible (EX294): Automate Red Hat Systems