![]() |
![]()
| ![]() |
![]()
NAME
SYNOPSIS
DESCRIPTIONThe The following options are available:
EXAMPLESExample 1: Open a shell in a jailThe following command specifies a jail by its name and utilizes the current user's shell: # jexec name It is also possible to specify a jail by its jid: # jexec JID Example 2: Run a single command without opening a shellThe following command runs ‘ # jexec name uname -a Example 3: Open a shell in a jail with a clean environmentThe following command opens a sh(1) shell in a jail with a clean environment: # jexec -l name sh Example 4: Open a shell in a jail with the login commandThe following command utilizes login(1) to access the jail, submitting an audit record, and displaying the user's last login, system copyright, and motd(5) message: # jexec -l name login -f
root SEE ALSOHISTORYThe BUGSIf 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.
|