diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-07-18 06:33:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-07-18 06:33:24 +0000 |
commit | 2ffc25b0aaaac92ef0cb7f2ed856967e696049c0 (patch) | |
tree | 6b39d32e9d314cc95d1bb6c9e1b1509addc49d71 /usr.bin/doas/doas.1 | |
parent | 0b6c15f2442a8a56b1ad29c3c72a767eb0189407 (diff) |
Add doas -s as a shorthand for doas $SHELL. ok tedu
Diffstat (limited to 'usr.bin/doas/doas.1')
-rw-r--r-- | usr.bin/doas/doas.1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/doas/doas.1 b/usr.bin/doas/doas.1 index 93dfe4ec680..31b013e5733 100644 --- a/usr.bin/doas/doas.1 +++ b/usr.bin/doas/doas.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: doas.1,v 1.4 2015/07/17 20:50:31 schwarze Exp $ +.\" $OpenBSD: doas.1,v 1.5 2015/07/18 06:33:23 nicm 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: July 17 2015 $ +.Dd $Mdocdate: July 18 2015 $ .Dt DOAS 1 .Os .Sh NAME @@ -21,6 +21,7 @@ .Nd execute commands as another user .Sh SYNOPSIS .Nm doas +.Op Fl s .Op Fl u Ar user .Ar command .Op Ar args @@ -31,6 +32,11 @@ utility executes the given command as another user. .Pp The options are as follows: .Bl -tag -width tenletters +.It Fl s +Execute the shell from +.Ev SHELL +or +.Pa /etc/passwd . .It Fl u Ar user Execute the command as .Ar user . |