diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2019-06-21 17:02:28 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2019-06-21 17:02:28 +0000 |
commit | d54cd84095c832ef5111a5e80e44ec90ec860873 (patch) | |
tree | 732111f0c44297697692cd2186dd8ba05fd60969 /usr.bin/doas | |
parent | 8f98a22c1a5a36e20382597d168ce5286708c2c2 (diff) |
tweak wording a bit. always talk about creating a new environment.
also document DOAS_USER.
ok deraadt jmc
Diffstat (limited to 'usr.bin/doas')
-rw-r--r-- | usr.bin/doas/doas.1 | 9 | ||||
-rw-r--r-- | usr.bin/doas/doas.conf.5 | 24 |
2 files changed, 13 insertions, 20 deletions
diff --git a/usr.bin/doas/doas.1 b/usr.bin/doas/doas.1 index d04a105879c..93baea3d0b3 100644 --- a/usr.bin/doas/doas.1 +++ b/usr.bin/doas/doas.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: doas.1,v 1.21 2019/06/19 09:50:13 schwarze Exp $ +.\" $OpenBSD: doas.1,v 1.22 2019/06/21 17:02:27 tedu Exp $ .\" .\"Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> .\" @@ -13,7 +13,7 @@ .\"WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\"ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\"OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.Dd $Mdocdate: June 19 2019 $ +.Dd $Mdocdate: June 21 2019 $ .Dt DOAS 1 .Os .Sh NAME @@ -40,7 +40,7 @@ or .Fl s is specified. .Pp -By default, the environment is reset. +By default, a new environment is created. The variables .Ev HOME , .Ev LOGNAME , @@ -51,6 +51,9 @@ and and the .Xr umask 2 are set to values appropriate for the target user. +.Ev DOAS_USER +is set to the name of the user executing +.Nm . The variables .Ev DISPLAY and diff --git a/usr.bin/doas/doas.conf.5 b/usr.bin/doas/doas.conf.5 index ceac1e49685..8341f6be1d0 100644 --- a/usr.bin/doas/doas.conf.5 +++ b/usr.bin/doas/doas.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: doas.conf.5,v 1.38 2019/06/19 09:55:55 schwarze Exp $ +.\" $OpenBSD: doas.conf.5,v 1.39 2019/06/21 17:02:27 tedu Exp $ .\" .\"Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> .\" @@ -13,7 +13,7 @@ .\"WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\"ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\"OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.Dd $Mdocdate: June 19 2019 $ +.Dd $Mdocdate: June 21 2019 $ .Dt DOAS.CONF 5 .Os .Sh NAME @@ -49,22 +49,11 @@ The user is not required to enter a password. After the user successfully authenticates, do not ask for a password again for some time. .It Ic keepenv -The user's environment is maintained. -The default is to retain the variables -.Ev DISPLAY -and -.Ev TERM -from the invoking process, reset -.Ev HOME , -.Ev LOGNAME , -.Ev PATH , -.Ev SHELL , -and -.Ev USER -as appropriate for the target user, and discard the rest of the environment. +Environment variables other than those listed in +.Xr doas 1 +are retained when creating the environment for the new process. .It Ic setenv { Oo Ar variable ... Oc Oo Ar variable=value ... Oc Ic } -In addition to the variables mentioned above, keep the space-separated -specified variables. +Keep or set the space-separated specified variables. Variables may also be removed with a leading .Sq - or set using the latter syntax. @@ -74,6 +63,7 @@ is a .Ql $ then the value to be set is taken from the existing environment variable of the indicated name. +This option is processed after the default environment has been created. .El .It Ar identity The username to match. |