Re: jexec -h hostname option

看板FB_current作者時間14年前 (2011/12/23 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
On 22. Dec 2011, at 19:39 , Matt Mullins wrote: > On Thu, Dec 22, 2011 at 1:31 PM, Bjoern A. Zeeb > <bzeeb-lists@lists.zabbadoz.net> wrote: >> jexec on a name works fine if you start the jail with a name as well. >> See the jail(8) man page on how to either use -n or name=3D. >>=20 >> jail -n foo ... >> or >> jail name=3Dfoo ... >>=20 >> then jexec foo ... >=20 > I've wanted to be able to do this since I read that in the jexec man > page, but it doesn't seem that /etc/rc.d/jail starts jails with that > option (at least in 9.0-RC3): >=20 I think -l -U root are the defaults; please double-check in = /etc/defaults/rc.conf, so exntending them to: jail_<name>_flags=3D"-l -U root -n <name>" is easy. > mmullins@boron 2808 ~ % jls -n > nodying enforce_statfs=3D2 host=3Dnew ip4=3Dnew ip6=3Ddisable jid=3D9 = linux=3Dnew > name=3D9 parent=3D0 path=3D/jails/shell nopersist securelevel=3D-1 > allow.nochflags allow.nomount allow.noquotas allow.noraw_sockets > allow.set_hostname allow.nosocket_af allow.nosysvipc children.cur=3D0 > children.max=3D0 cpuset.id=3D2 host.domainname=3D"" host.hostid=3D0 > host.hostname=3Dboron-shell.local.mmlx.us > host.hostuuid=3D00000000-0000-0000-0000-000000000000 > ip4.addr=3D192.168.33.40 ip4.saddrsel ip6.addr=3D ip6.saddrsel > linux.osname=3DLinux linux.osrelease=3D2.6.16 linux.oss_version=3D198144= >=20 > Is there a "right" way to do this? >=20 > Thanks, > Matt Mullins --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1Eyun_0m (FB_current)
文章代碼(AID): #1Eyun_0m (FB_current)