Skip to content

Commit 3ba525a

Browse files
committed
Style fixes from Bjarni Ingi Gislason.
1 parent b04386f commit 3ba525a

File tree

2 files changed

+85
-85
lines changed

2 files changed

+85
-85
lines changed

docs/sudoers.man.in

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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
\fIsudoers\fR
673673
file itself, in which case they override those set by the system.
674674
See the
675-
\fIrlimit_as,\fR
676-
\fIrlimit_core,\fR
677-
\fIrlimit_cpu,\fR
678-
\fIrlimit_data,\fR
679-
\fIrlimit_fsize,\fR
680-
\fIrlimit_locks,\fR
681-
\fIrlimit_memlock,\fR
682-
\fIrlimit_nofile,\fR
683-
\fIrlimit_nproc,\fR
684-
\fIrlimit_rss,\fR
675+
\fIrlimit_as\fR,
676+
\fIrlimit_core\fR,
677+
\fIrlimit_cpu\fR,
678+
\fIrlimit_data\fR,
679+
\fIrlimit_fsize\fR,
680+
\fIrlimit_locks\fR,
681+
\fIrlimit_memlock\fR,
682+
\fIrlimit_nofile\fR,
683+
\fIrlimit_nproc\fR,
684+
\fIrlimit_rss\fR,
685685
\fIrlimit_stack\fR
686686
options described below.
687687
Resource limits in
@@ -805,7 +805,7 @@ Cmnd_Alias ::= NAME
805805

806806
Cmnd_Alias_Spec ::= Cmnd_Alias '=' Cmnd_List
807807

808-
NAME ::= [A-Z]([A-Z][0-9]_)*
808+
NAME ::= [A\(enZ]([A\(enZ][0\(en9]_)*
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\(enFa\(enf0\(en9]+ |
1042+
[A\(enZa\(enz0\(en9\e+/=]+
10431043

10441044
Digest_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
12291229
SHA224(/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
12381238
EYGH2oNk1JC0p9679IMATo8+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
17761776
and minutes instead of a
17771777
\(oqZ\(cq.
17781778
For example,
1779-
\(oq-0500\(cq
1779+
\(oq\-0500\(cq
17801780
would correspond to Eastern Standard time in the US.
17811781
As an extension, if no
17821782
\(oqZ\(cq
@@ -2083,10 +2083,10 @@ By default, if the
20832083
\fRNOPASSWD\fR
20842084
tag is applied to any of a user's entries for the current host,
20852085
the user will be able to run
2086-
\(oqsudo -l\(cq
2086+
\(oqsudo \-l\(cq
20872087
without a password.
20882088
Additionally, a user may only run
2089-
\(oqsudo -v\(cq
2089+
\(oqsudo \-v\(cq
20902090
without a password if all of the user's entries for the current
20912091
host have the
20922092
\fRNOPASSWD\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.
42654265
Only available if
42664266
\fBsudo\fR
42674267
is configured with the
4268-
\fR--with-logincap\fR
4268+
\fR\-\-with-logincap\fR
42694269
option.
42704270
This flag is
42714271
\fIoff\fR
@@ -4373,7 +4373,7 @@ closefrom
43734373
Before it executes a command,
43744374
\fBsudo\fR
43754375
will 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\(en2).
43774377
The
43784378
\fIclosefrom\fR
43794379
option 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.
44844484
If set to a value less than 0 the user's time stamp will not expire
44854485
until the system is rebooted.
44864486
This can be used to allow users to create or delete their own time stamps via
4487-
\(oqsudo -v\(cq
4487+
\(oqsudo \-v\(cq
44884488
and
4489-
\(oqsudo -k\(cq
4489+
\(oqsudo \-k\(cq
44904490
respectively.
44914491
.TP 18n
44924492
umask
@@ -5169,7 +5169,7 @@ groups runs
51695169
Only available if
51705170
\fBsudo\fR
51715171
is configured with the
5172-
\fR--enable-admin-flag\fR
5172+
\fR\-\-enable-admin-flag\fR
51735173
option.
51745174
The default value is
51755175
\fI~/.sudo_as_admin_successful\fR.
@@ -5866,7 +5866,7 @@ single value without double-quotes.
58665866
The 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,
58705870
and
58715871
\(oq\&!\(cq
58725872
operators respectively.
@@ -5893,7 +5893,7 @@ single value without double-quotes.
58935893
The 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,
58975897
and
58985898
\(oq\&!\(cq
58995899
operators 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
65466546
testing
65476547
.RE
65486548
.fi
@@ -6615,7 +6615,7 @@ flag or the
66156615
command tag will enable
66166616
\fIlog_stdout\fR
66176617
and
6618-
\fIlog_stderr.\fR
6618+
\fIlog_stderr\fR.
66196619
Careful ordering of rules may be necessary to achieve the results
66206620
that you expect.
66216621
.SS "I/O log format"
@@ -6774,7 +6774,7 @@ No post-processing is performed.
67746774
For manual viewing, you may wish to convert carriage return characters
67756775
in the log to line feeds.
67766776
For example:
6777-
\(oqgunzip -c ttyin | tr \&"\er\&" \&"\en\&"\(cq
6777+
\(oqgunzip \-c ttyin | tr \&"\er\&" \&"\en\&"\(cq
67786778
.TP 10n
67796779
\fIstdin\fR
67806780
The 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
73207320
ALL 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

Comments
 (0)