Sudo nopasswd: Difference between revisions

From LinuxizeNet
No edit summary
No edit summary
Line 17: Line 17:
<syntaxhighlight lang="Bash" >
<syntaxhighlight lang="Bash" >
%group_name ALL=(ALL) NOPASSWD: ALL
%group_name ALL=(ALL) NOPASSWD: ALL
Headers with underscore in name are disabled by NGINX. To enable them, add underscores_in_headers in NGINX server or http context.
</syntaxhighlight>
</syntaxhighlight>
[[Category: Linux]]
[[Category: Linux]]
[[Category:Howto]]
[[Category:Howto]]

Revision as of 23:33, 5 December 2024

sudo without password authentication

Edit sudoers with:

visudo

Changes

For user:

<user> ALL=(ALL) NOPASSWD: ALL

For groups:

%group_name ALL=(ALL) NOPASSWD: ALL