1 .\" $OpenBSD: doas.1,v 1.16 2016/06/11 04:38:21 tedu Exp $
3 .\"Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
5 .\"Permission to use, copy, modify, and distribute this software for any
6 .\"purpose with or without fee is hereby granted, provided that the above
7 .\"copyright notice and this permission notice appear in all copies.
9 .\"THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\"WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\"MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\"ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\"WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\"ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\"OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 .Dd $Mdocdate: June 11 2016 $
21 .Nd execute commands as another user
34 utility executes the given command as another user.
37 argument is mandatory unless
43 The options are as follows:
44 .Bl -tag -width tenletters
46 Use the specified authentication style when validating the user,
49 A list of doas-specific authentication methods may be configured by adding an
54 Parse and check the configuration file
61 will also perform command matching.
68 will be printed on standard output, depending on command
70 No command is executed.
72 Non interactive mode, fail if
74 would prompt for password.
76 Execute the shell from
81 Execute the command as
85 Any dashes after a combined double dash (--) will be interpreted as part of the command to be run or its paramters. Not an argument passed to doas itself.
89 It may fail for one of the following reasons:
94 .Pa /usr/local/etc/doas.conf
97 The user attempted to run a command which is not permitted.
99 The password was incorrect.
101 The specified command was not found or is not executable.
109 command first appeared in
112 .An Ted Unangst Aq Mt tedu@openbsd.org