2525.nr BA @BAMAN@
2626.nr LC @LCMAN@
2727.nr PS @PSMAN@
28- .TH "SUDOERS" "@mansectform@" "February 14 , 2025" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
28+ .TH "SUDOERS" "@mansectform@" "February 22 , 2025" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
2929.nh
3030.if n .ad l
3131.SH "NAME"
@@ -672,16 +672,16 @@ Resource limits may also be set in the
672672\fI sudoers \fR
673673file itself, in which case they override those set by the system.
674674See the
675- \fI rlimit_as, \fR
676- \fI rlimit_core, \fR
677- \fI rlimit_cpu, \fR
678- \fI rlimit_data, \fR
679- \fI rlimit_fsize, \fR
680- \fI rlimit_locks, \fR
681- \fI rlimit_memlock, \fR
682- \fI rlimit_nofile, \fR
683- \fI rlimit_nproc, \fR
684- \fI rlimit_rss, \fR
675+ \fI rlimit_as \fR ,
676+ \fI rlimit_core \fR ,
677+ \fI rlimit_cpu \fR ,
678+ \fI rlimit_data \fR ,
679+ \fI rlimit_fsize \fR ,
680+ \fI rlimit_locks \fR ,
681+ \fI rlimit_memlock \fR ,
682+ \fI rlimit_nofile \fR ,
683+ \fI rlimit_nproc \fR ,
684+ \fI rlimit_rss \fR ,
685685\fI rlimit_stack \fR
686686options described below.
687687Resource limits in
@@ -805,7 +805,7 @@ Cmnd_Alias ::= NAME
805805
806806Cmnd_Alias_Spec ::= Cmnd_Alias '=' Cmnd_List
807807
808- NAME ::= [A-Z ]([A-Z ][0-9 ]_)*
808+ NAME ::= [A\( en Z ]([A\( en Z ][0\( en 9 ]_)*
809809.RE
810810.fi
811811.PP
@@ -1038,8 +1038,8 @@ only the case for non-networked systems.
10381038.nf
10391039.sp
10401040.RS 0n
1041- digest ::= [A-Fa-f0-9 ]+ |
1042- [A-Za-z0-9 \e +/=]+
1041+ digest ::= [A\( en Fa \( en f0 \( en 9 ]+ |
1042+ [A\( en Za \( en z0 \( en 9 \e +/=]+
10431043
10441044Digest_Spec ::= "sha224" ':' digest |
10451045 "sha256" ':' digest |
@@ -1225,7 +1225,7 @@ For example, using openssl:
12251225.nf
12261226.sp
12271227.RS 0n
1228- $ openssl dgst -sha224 /bin/ls
1228+ $ openssl dgst \ - sha224 /bin/ls
12291229SHA224(/bin/ls)= 118187da8364d490b4a7debbf483004e8f3e053ec954309de2c41a25
12301230.RE
12311231.fi
@@ -1234,7 +1234,7 @@ It is also possible to use openssl to generate base64 output:
12341234.nf
12351235.sp
12361236.RS 0n
1237- $ openssl dgst -binary -sha224 /bin/ls | openssl base64
1237+ $ openssl dgst \ - binary \ - sha224 /bin/ls | openssl base64
12381238EYGH2oNk1JC0p9679IMATo8+BT7JVDCd4sQaJQ==
12391239.RE
12401240.fi
@@ -1509,7 +1509,7 @@ For example:
15091509.nf
15101510.sp
15111511.RS 0n
1512- $ sudo -u operator /bin/ls
1512+ $ sudo \ - u operator /bin/ls
15131513.RE
15141514.fi
15151515.PP
@@ -1564,9 +1564,9 @@ The following would all be permitted by the sudoers entry above:
15641564.nf
15651565.sp
15661566.RS 0n
1567- $ sudo -u operator /bin/ls
1568- $ sudo -u operator -g operator /bin/ls
1569- $ sudo -g operator /bin/ls
1567+ $ sudo \ - u operator /bin/ls
1568+ $ sudo \ - u operator \ - g operator /bin/ls
1569+ $ sudo \ - g operator /bin/ls
15701570.RE
15711571.fi
15721572.PP
@@ -1588,7 +1588,7 @@ For example:
15881588.nf
15891589.sp
15901590.RS 0n
1591- $ sudo -g dialer /usr/bin/cu
1591+ $ sudo \ - g dialer /usr/bin/cu
15921592.RE
15931593.fi
15941594.PP
@@ -1729,7 +1729,7 @@ For example:
17291729.nf
17301730.sp
17311731.RS 0n
1732- $ ppriv -l
1732+ $ ppriv \ - l
17331733.RE
17341734.fi
17351735.PP
@@ -1776,7 +1776,7 @@ It is also possible to specify a timezone offset from UTC in hours
17761776and minutes instead of a
17771777\(oq Z\(cq .
17781778For example,
1779- \(oq -0500\(cq
1779+ \(oq \ - 0500\(cq
17801780would correspond to Eastern Standard time in the US.
17811781As an extension, if no
17821782\(oq Z\(cq
@@ -2083,10 +2083,10 @@ By default, if the
20832083\fR NOPASSWD\fR
20842084tag is applied to any of a user's entries for the current host,
20852085the user will be able to run
2086- \(oq sudo -l\(cq
2086+ \(oq sudo \ - l\(cq
20872087without a password.
20882088Additionally, a user may only run
2089- \(oq sudo -v\(cq
2089+ \(oq sudo \ - v\(cq
20902090without a password if all of the user's entries for the current
20912091host have the
20922092\fR NOPASSWD\fR
@@ -2338,7 +2338,7 @@ This kind of rule is impossible to express safely using wildcards.
23382338.nf
23392339.sp
23402340.RS 4n
2341- john ALL = /usr/bin/passwd ^[a-zA-Z0-9_]+$,\e
2341+ john ALL = /usr/bin/passwd ^[a\ - zA\ - Z0\ - 9_]+$,\e
23422342 !/usr/bin/passwd root
23432343.RE
23442344.fi
@@ -4265,7 +4265,7 @@ if one exists.
42654265Only available if
42664266\fB sudo \fR
42674267is configured with the
4268- \fR - -with-logincap\fR
4268+ \fR \-\ - with-logincap\fR
42694269option.
42704270This flag is
42714271\fI off \fR
@@ -4373,7 +4373,7 @@ closefrom
43734373Before it executes a command,
43744374\fB sudo \fR
43754375will close all open file descriptors other than standard input,
4376- standard output, and standard error (file descriptors 0-2 ).
4376+ standard output, and standard error (file descriptors 0\( en 2 ).
43774377The
43784378\fI closefrom \fR
43794379option can be used to specify a different file descriptor at which
@@ -4484,9 +4484,9 @@ Set this to 0 to always prompt for a password.
44844484If set to a value less than 0 the user's time stamp will not expire
44854485until the system is rebooted.
44864486This can be used to allow users to create or delete their own time stamps via
4487- \(oq sudo -v\(cq
4487+ \(oq sudo \ - v\(cq
44884488and
4489- \(oq sudo -k\(cq
4489+ \(oq sudo \ - k\(cq
44904490respectively.
44914491.TP 18n
44924492umask
@@ -5169,7 +5169,7 @@ groups runs
51695169Only available if
51705170\fB sudo \fR
51715171is configured with the
5172- \fR - -enable-admin-flag\fR
5172+ \fR \-\ - enable-admin-flag\fR
51735173option.
51745174The default value is
51755175\fI ~/.sudo_as_admin_successful \fR .
@@ -5866,7 +5866,7 @@ single value without double-quotes.
58665866The list can be replaced, added to, deleted from, or disabled by using the
58675867\(oq =\(cq ,
58685868\(oq +=\(cq ,
5869- \(oq -=\(cq ,
5869+ \(oq \ - =\(cq ,
58705870and
58715871\(oq \& !\(cq
58725872operators respectively.
@@ -5893,7 +5893,7 @@ single value without double-quotes.
58935893The list can be replaced, added to, deleted from, or disabled by using the
58945894\(oq =\(cq ,
58955895\(oq +=\(cq ,
5896- \(oq -=\(cq ,
5896+ \(oq \ - =\(cq ,
58975897and
58985898\(oq \& !\(cq
58995899operators respectively.
@@ -6542,7 +6542,7 @@ statement is never executed.
65426542.nf
65436543.sp
65446544.RS 4n
6545- $ sh -s < test.sh
6545+ $ sh \ - s < test.sh
65466546testing
65476547.RE
65486548.fi
@@ -6615,7 +6615,7 @@ flag or the
66156615command tag will enable
66166616\fI log_stdout \fR
66176617and
6618- \fI log_stderr. \fR
6618+ \fI log_stderr \fR .
66196619Careful ordering of rules may be necessary to achieve the results
66206620that you expect.
66216621.SS "I/O log format"
@@ -6774,7 +6774,7 @@ No post-processing is performed.
67746774For manual viewing, you may wish to convert carriage return characters
67756775in the log to line feeds.
67766776For example:
6777- \(oq gunzip -c ttyin | tr \& "\e r\& " \& "\e n\& "\(cq
6777+ \(oq gunzip \ - c ttyin | tr \& "\e r\& " \& "\e n\& "\(cq
67786778.TP 10n
67796779\fI stdin \fR
67806780The standard input when no terminal is present, or input redirected from
@@ -7108,7 +7108,7 @@ to operator.
71087108.nf
71097109.sp
71107110.RS 0n
7111- pete HPPA = /usr/bin/passwd [A-Za-z]*, !/usr/bin/passwd *root*
7111+ pete HPPA = /usr/bin/passwd [A\ - Za\ - z]*, !/usr/bin/passwd *root*
71127112
71137113%opers ALL = (: ADMINGRP) /usr/sbin/
71147114.RE
@@ -7153,7 +7153,7 @@ As a result, this rule will also allow:
71537153.nf
71547154.sp
71557155.RS 4n
7156- passwd username - -expire
7156+ passwd username \-\ - expire
71577157.RE
71587158.fi
71597159.PP
@@ -7225,7 +7225,7 @@ without giving a password.
72257225.nf
72267226.sp
72277227.RS 0n
7228- john ALPHA = /usr/bin/su [!-]*, !/usr/bin/su *root*
7228+ john ALPHA = /usr/bin/su [!\ - ]*, !/usr/bin/su *root*
72297229.RE
72307230.fi
72317231.PP
@@ -7318,7 +7318,7 @@ to www.
73187318.sp
73197319.RS 0n
73207320ALL CDROM = NOPASSWD: /sbin/umount /CDROM,\e
7321- /sbin/mount -o nosuid\e ,nodev /dev/cd0a /CDROM
7321+ /sbin/mount \ - o nosuid\e ,nodev /dev/cd0a /CDROM
73227322.RE
73237323.fi
73247324.PP
@@ -7382,8 +7382,8 @@ file entry:
73827382.nf
73837383.sp
73847384.RS 0n
7385- john ALL = /usr/bin/passwd [a-zA-Z0-9]*, /usr/bin/chsh [a-zA-Z0-9]*,\e
7386- /usr/bin/chfn [a-zA-Z0-9]*, !/usr/bin/* root
7385+ john ALL = /usr/bin/passwd [a\ - zA\ - Z0\ - 9]*, /usr/bin/chsh [a\ - zA\ - Z0\ - 9]*,\e
7386+ /usr/bin/chfn [a\ - zA\ - Z0\ - 9]*, !/usr/bin/* root
73877387.RE
73887388.fi
73897389.PP
0 commit comments