summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jexec/jexec.8
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-04-19 10:12:10 +0000
committerdelphij <delphij@FreeBSD.org>2006-04-19 10:12:10 +0000
commitfe5c8255df598de68e545aabeb2b1c272e548b9a (patch)
tree4a17bb5881e69532ada738ff53e9ae0c192ec0ee /usr.sbin/jexec/jexec.8
parent51d1ca0f6e57fd46aed0662d117beda3ff711169 (diff)
downloadFreeBSD-src-fe5c8255df598de68e545aabeb2b1c272e548b9a.zip
FreeBSD-src-fe5c8255df598de68e545aabeb2b1c272e548b9a.tar.gz
Add -u and -U which functions like the jail(8) that allow
commands to be executed under a different credential. PR: bin/95777 Submitted by: clsung
Diffstat (limited to 'usr.sbin/jexec/jexec.8')
-rw-r--r--usr.sbin/jexec/jexec.814
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.sbin/jexec/jexec.8 b/usr.sbin/jexec/jexec.8
index a5749c1..0677ff0 100644
--- a/usr.sbin/jexec/jexec.8
+++ b/usr.sbin/jexec/jexec.8
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 8, 2003
+.Dd April 19, 2006
.Dt JEXEC 8
.Os
.Sh NAME
@@ -33,6 +33,7 @@
.Nd "execute a command inside an existing jail"
.Sh SYNOPSIS
.Nm
+.Op Fl u Ar username | Fl U Ar username
.Ar jid command ...
.Sh DESCRIPTION
The
@@ -41,6 +42,17 @@ utility executes
.Ar command
inside the jail identified by
.Ar jid .
+.Pp
+The following options are available:
+.Bl -tag -width indent
+.It Fl u Ar username
+The user name from host environment as whom the
+.Ar command
+should run.
+.It Fl U Ar username
+The user name from jailed environment as whom the
+.Ar command
+should run.
.Sh SEE ALSO
.Xr jail_attach 2 ,
.Xr jail 8 ,
OpenPOWER on IntegriCloud