jexec by jname

Uffe Jakobsen uffe at uffe.org
Wed May 4 09:27:43 UTC 2011


On 2011-03-26 19:09, Fabian Keil wrote:
> Subbsd<subbsd at gmail.com>  wrote:
>
>> I see wrong information at http://wiki.freebsd.org/Jails
>> "jexec - selection by jail name, 2008-05-26 commited to 8-CURRENT"
>>
>> I do not see something like "jexec -n<name>"  in  RELENG_8 or
>> CURRENT. This is fake ;) ?
>
> Quoting jexec(8):
>
> | DESCRIPTION
> |     The jexec utility executes command inside the jail identified by its jid
> |     or name.
>
> The -n option is still there, but silently ignored.
>
> Note, however, that the jail name jexec(8) is talking
> about is not the same as the host name.
>
> By default the jail id is used as jail name:
>
> fk at r500 ~ $jls -n name jid
> name=1 jid=1
> name=2 jid=2
> name=3 jid=3
>
> So while jexec allows you to use the jail "name", it seems
> to lack the "accept hostname or ip-number" feature mentioned
> in the wiki, unless a non default jail name is used.
>
> Fabian

FYI: I've submitted a patch that would enable configurable jail_names 
from the (rc.d) rc.conf

But it is still pending:

http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/150599

/Uffe



More information about the freebsd-jail mailing list