History log of /openbsd-current/usr.bin/doas/doas.1
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.26 22-Dec-2022 kn

Denote multiple arguments with 'arg ...' not 'args'

A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.

mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.

Cleanup a few markups of the same argument so the text keeps reading
naturally; omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.

For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.

Feedback millert jmc schwarze deraadt
OK jmc


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.25 16-Jan-2021 martijn

s/authorization/authentication/g

OK kn@ tedu@


# 1.24 15-Jan-2021 martijn

Be more explicit by stating that the -n flag is linked to the nopass option
in doas.conf instead of a generic "would prompt for password", which could
lead people into believing that persist could work with this option.

OK tedu@
Feedback and OK kn@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.23 04-Jul-2019 tedu

note that authentication is required, unless otherwise configured.
ok sthen


# 1.22 21-Jun-2019 tedu

tweak wording a bit. always talk about creating a new environment.
also document DOAS_USER.
ok deraadt jmc


# 1.21 19-Jun-2019 schwarze

mention that doas(1) resets the umask(2);
OK tedu@


# 1.20 17-Jun-2019 tedu

mention environment resetting here as well. ok millert


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.


# 1.25 16-Jan-2021 martijn

s/authorization/authentication/g

OK kn@ tedu@


# 1.24 15-Jan-2021 martijn

Be more explicit by stating that the -n flag is linked to the nopass option
in doas.conf instead of a generic "would prompt for password", which could
lead people into believing that persist could work with this option.

OK tedu@
Feedback and OK kn@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.23 04-Jul-2019 tedu

note that authentication is required, unless otherwise configured.
ok sthen


# 1.22 21-Jun-2019 tedu

tweak wording a bit. always talk about creating a new environment.
also document DOAS_USER.
ok deraadt jmc


# 1.21 19-Jun-2019 schwarze

mention that doas(1) resets the umask(2);
OK tedu@


# 1.20 17-Jun-2019 tedu

mention environment resetting here as well. ok millert


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.


# 1.24 15-Jan-2021 martijn

Be more explicit by stating that the -n flag is linked to the nopass option
in doas.conf instead of a generic "would prompt for password", which could
lead people into believing that persist could work with this option.

OK tedu@
Feedback and OK kn@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.23 04-Jul-2019 tedu

note that authentication is required, unless otherwise configured.
ok sthen


# 1.22 21-Jun-2019 tedu

tweak wording a bit. always talk about creating a new environment.
also document DOAS_USER.
ok deraadt jmc


# 1.21 19-Jun-2019 schwarze

mention that doas(1) resets the umask(2);
OK tedu@


# 1.20 17-Jun-2019 tedu

mention environment resetting here as well. ok millert


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.


# 1.23 04-Jul-2019 tedu

note that authentication is required, unless otherwise configured.
ok sthen


# 1.22 21-Jun-2019 tedu

tweak wording a bit. always talk about creating a new environment.
also document DOAS_USER.
ok deraadt jmc


# 1.21 19-Jun-2019 schwarze

mention that doas(1) resets the umask(2);
OK tedu@


# 1.20 17-Jun-2019 tedu

mention environment resetting here as well. ok millert


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.


# 1.22 21-Jun-2019 tedu

tweak wording a bit. always talk about creating a new environment.
also document DOAS_USER.
ok deraadt jmc


# 1.21 19-Jun-2019 schwarze

mention that doas(1) resets the umask(2);
OK tedu@


# 1.20 17-Jun-2019 tedu

mention environment resetting here as well. ok millert


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.


# 1.21 19-Jun-2019 schwarze

mention that doas(1) resets the umask(2);
OK tedu@


# 1.20 17-Jun-2019 tedu

mention environment resetting here as well. ok millert


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.


# 1.20 17-Jun-2019 tedu

mention environment resetting here as well. ok millert


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 04-Sep-2016 tedu

-L means no command


# 1.18 02-Sep-2016 tedu

clarify that -L will exit without running a command.


# 1.17 02-Sep-2016 tedu

add support for the verified auth ioctls using 'persist' rules.
ok deraadt henning


Revision tags: OPENBSD_6_0_BASE
# 1.16 11-Jun-2016 tedu

tighten up some wording


Revision tags: OPENBSD_5_9_BASE
# 1.15 08-Dec-2015 sthen

Support -a <auth_style> in doas(1). Allows specifying a non-default auth
style, for example if you have "auth-doas=yubikey,passwd" in login.conf,
doas will usually want yubikey authentication, but will allow a fallback
of "doas -a passwd".

Avoids the need for sudo in a number of cases, at the expense of 5 added
lines of code (and one of those is only to avoid >80 columns).

Adapted from a diff by Renaud Allard, ok dlg@ tedu@


Revision tags: OPENBSD_5_8_BASE
# 1.14 27-Jul-2015 jmc

some improvements from michael reed;


# 1.13 26-Jul-2015 tedu

small clarifications


# 1.12 26-Jul-2015 espie

nflag (as in sudo, force non-interactive mode)
as discussed with ted@


# 1.11 26-Jul-2015 zhuk

Implement command matching without execution. This just extends
functionality of the -C flag, so we are not introducing more garbage.

Input and okay from jmc@ (documentation) and tedu@ (everything).


# 1.10 21-Jul-2015 jmc

options w/o args go first in SYNOPSIS, and add -C to usage();


# 1.9 21-Jul-2015 tedu

cases should line up with switch, from Dimitris Papastamos


# 1.8 21-Jul-2015 zhuk

Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.


# 1.7 19-Jul-2015 jmc

whitespace;


# 1.6 19-Jul-2015 espie

spell out complete path to config file, okay tedu@


# 1.5 18-Jul-2015 nicm

Add doas -s as a shorthand for doas $SHELL. ok tedu


# 1.4 17-Jul-2015 schwarze

add some missing content and markup and optimize some indentation
ok tedu@


# 1.3 17-Jul-2015 tedu

tweak wording


# 1.2 17-Jul-2015 tedu

improve wording, from Thanos Tsouanas


# 1.1 16-Jul-2015 tedu

import doas. still subject to changes, large and small.