Spell NOPASSWD properly for sudo

Reported by:	Daniel Li <dan@danielyli.com>
This commit is contained in:
Benjamin Kaduk 2016-07-22 19:17:21 +00:00
parent 7a3ab74508
commit bc25d49a62
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=49147

View file

@ -4044,13 +4044,13 @@ jail:httpd:memoryuse:deny=2G/jail</programlisting>
<para>Most organizations are moving or have moved toward a two
factor authentication model. In these cases, the user may
not have a password to enter. <application>Sudo</application>
provides for these cases with the <literal>NOPASSWORD</literal>
provides for these cases with the <literal>NOPASSWD</literal>
variable. Adding it to the configuration above
will allow all members of the <replaceable>webteam</replaceable>
group to manage the service without the password
requirement:</para>
<programlisting>%webteam ALL=(ALL) NOPASSWORD: /usr/sbin/service webservice *</programlisting>
<programlisting>%webteam ALL=(ALL) NOPASSWD: /usr/sbin/service webservice *</programlisting>
</tip>
<sect2 xml:id="security-sudo-loggin">