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 httpd

Related terms

Taught in

References

Certification courses