JEXEC(8) | MidnightBSD System Manager's Manual | JEXEC(8) |
jexec
— execute a
command inside an existing jail
jexec |
[-l ] [-u
username | -U
username] jail
[command ...] |
The jexec
utility executes
command inside the jail
identified by its jid or name. If command is not
specified then the user's shell is used.
The following options are available:
-l
HOME
, SHELL
,
TERM
, USER
, and anything
from the login class capability database for the user.-u
username-U
usernameThe jexec
utility was added in
FreeBSD 5.1.
If the jail is not identified by jid there is a possible race in between the lookup of the jail and executing the command inside the jail. Giving a jid has a similar race as another process can stop the jail and start another one after the user looked up the jid.
April 24, 2016 | midnightbsd-3.1 |