Skip to content

Commit ee14892

Browse files
committed
fixup! docs: fix sudoers(5)
- passwd_timeout: decimal or bool - timestamp_timeout: decimal or bool
1 parent 32ca5a3 commit ee14892

2 files changed

Lines changed: 53 additions & 47 deletions

File tree

docs/sudoers.man.in

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4494,31 +4494,6 @@ This value is used to decide when to wrap lines for nicer log files.
44944494
This has no effect on the syslog log file, only the file log.
44954495
The default is @loglen@ (use 0 or negate the option to disable word wrap).
44964496
.TP 18n
4497-
passwd_timeout
4498-
Number of minutes before the
4499-
\fBsudo\fR
4500-
password prompt times out, or 0 for no timeout.
4501-
The timeout may include a fractional component
4502-
if minute granularity is insufficient, for example 2.5.
4503-
The default is @password_timeout@.
4504-
.TP 18n
4505-
timestamp_timeout
4506-
.br
4507-
Number of minutes that can elapse before
4508-
\fBsudo\fR
4509-
will ask for a password again.
4510-
The timeout may include a fractional component if
4511-
minute granularity is insufficient, for example 2.5.
4512-
The default is @timeout@.
4513-
Set this to 0 to always prompt for a password.
4514-
If set to a value less than 0 the user's time stamp will not expire
4515-
until the system is rebooted.
4516-
This can be used to allow users to create or delete their own time stamps via
4517-
\(oqsudo \-v\(cq
4518-
and
4519-
\(oqsudo \-k\(cq
4520-
respectively.
4521-
.TP 18n
45224497
umask
45234498
File mode creation mask to use when running the command.
45244499
Negate this option or set it to 0777 to prevent
@@ -4561,6 +4536,33 @@ Defaults to 0600 (read and write by user only).
45614536
.sp
45624537
This setting is only supported by version 1.8.19 or higher.
45634538
.PP
4539+
\fBDecimals that can be used in a boolean context\fR:
4540+
.TP 18n
4541+
passwd_timeout
4542+
Number of minutes before the
4543+
\fBsudo\fR
4544+
password prompt times out, or 0 for no timeout.
4545+
The timeout may include a fractional component
4546+
if minute granularity is insufficient, for example 2.5.
4547+
The default is @password_timeout@.
4548+
.TP 18n
4549+
timestamp_timeout
4550+
.br
4551+
Number of minutes that can elapse before
4552+
\fBsudo\fR
4553+
will ask for a password again.
4554+
The timeout may include a fractional component if
4555+
minute granularity is insufficient, for example 2.5.
4556+
The default is @timeout@.
4557+
Set this to 0 to always prompt for a password.
4558+
If set to a value less than 0 the user's time stamp will not expire
4559+
until the system is rebooted.
4560+
This can be used to allow users to create or delete their own time stamps via
4561+
\(oqsudo \-v\(cq
4562+
and
4563+
\(oqsudo \-k\(cq
4564+
respectively.
4565+
.PP
45644566
\fBStrings\fR:
45654567
.if \n(AA \{\
45664568
.TP 18n

docs/sudoers.mdoc.in

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4244,28 +4244,6 @@ Number of characters per line for the file log.
42444244
This value is used to decide when to wrap lines for nicer log files.
42454245
This has no effect on the syslog log file, only the file log.
42464246
The default is @loglen@ (use 0 or negate the option to disable word wrap).
4247-
.It passwd_timeout
4248-
Number of minutes before the
4249-
.Nm sudo
4250-
password prompt times out, or 0 for no timeout.
4251-
The timeout may include a fractional component
4252-
if minute granularity is insufficient, for example 2.5.
4253-
The default is @password_timeout@.
4254-
.It timestamp_timeout
4255-
Number of minutes that can elapse before
4256-
.Nm sudo
4257-
will ask for a password again.
4258-
The timeout may include a fractional component if
4259-
minute granularity is insufficient, for example 2.5.
4260-
The default is @timeout@.
4261-
Set this to 0 to always prompt for a password.
4262-
If set to a value less than 0 the user's time stamp will not expire
4263-
until the system is rebooted.
4264-
This can be used to allow users to create or delete their own time stamps via
4265-
.Ql sudo \-v
4266-
and
4267-
.Ql sudo \-k
4268-
respectively.
42694247
.It umask
42704248
File mode creation mask to use when running the command.
42714249
Negate this option or set it to 0777 to prevent
@@ -4308,6 +4286,32 @@ Defaults to 0600 (read and write by user only).
43084286
This setting is only supported by version 1.8.19 or higher.
43094287
.El
43104288
.Pp
4289+
.Sy Decimals that can be used in a boolean context :
4290+
.Bl -tag -width 16n
4291+
.It passwd_timeout
4292+
Number of minutes before the
4293+
.Nm sudo
4294+
password prompt times out, or 0 for no timeout.
4295+
The timeout may include a fractional component
4296+
if minute granularity is insufficient, for example 2.5.
4297+
The default is @password_timeout@.
4298+
.It timestamp_timeout
4299+
Number of minutes that can elapse before
4300+
.Nm sudo
4301+
will ask for a password again.
4302+
The timeout may include a fractional component if
4303+
minute granularity is insufficient, for example 2.5.
4304+
The default is @timeout@.
4305+
Set this to 0 to always prompt for a password.
4306+
If set to a value less than 0 the user's time stamp will not expire
4307+
until the system is rebooted.
4308+
This can be used to allow users to create or delete their own time stamps via
4309+
.Ql sudo \-v
4310+
and
4311+
.Ql sudo \-k
4312+
respectively.
4313+
.El
4314+
.Pp
43114315
.Sy Strings :
43124316
.Bl -tag -width 16n
43134317
.if \n(AA \{\

0 commit comments

Comments
 (0)