Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2003 11:53:47 +0200 (MET DST)
From:      Mipam <mipam@ibb.net>
To:        <freebsd-questions@freebsd.org>
Subject:   rc.d jail script
Message-ID:  <Pine.LNX.4.33.0308131146260.19088-200000@ux1.ibb.net>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--138318368-198842015-1060768427=:19088
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

I setup a jail environment using man jail and with some more struggle
man rc.conf helped me out putting the stuff in the rc.conf file to start
at boot time. I created a user in the jail and in the jail sshd started so
that the user could log on. However, then i got no access to tty (bad file
descriptor). Then i looked into ${jail_rootdir}/dev and it was nearly
empty. So i mounted the devfs in the jailenv. I also mounted a procfs in
the jail. I attached a diff with the original rc.d/jail script, since i
had to adjust mine to make things happen at boot time.
Anybody got any other hints for me so that running for example apache in
the jail will be fine? Maybe I'll run into some other surprises?
Bye,

Mipam.

ps could you also cc to mipam@ibb.net since i aint subscribed to this
list?


--138318368-198842015-1060768427=:19088
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=jail_diff
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0308131153470.19088@ux1.ibb.net>
Content-Description: 
Content-Disposition: attachment; filename=jail_diff

LS0tIC91c3Ivc3JjL2V0Yy9yYy5kL2phaWwJTW9uIE1heSAgNSAxNzozODo0
MSAyMDAzDQorKysgL2V0Yy9yYy5kL2phaWwJV2VkIEF1ZyAxMyAxMToyODox
OSAyMDAzDQpAQCAtNTQsNyArNTQsOCBAQA0KIAkJZXZhbCBqYWlsX2lwPVwi
XCRqYWlsXyR7X2phaWx9X2lwXCINCiAJCWV2YWwgamFpbF9leGVjPVwiXCRq
YWlsXyR7X2phaWx9X2V4ZWNcIg0KIAkJWyAteiAke2phaWxfZXhlY30gXSAm
JiBqYWlsX2V4ZWM9Ii9iaW4vc2ggL2V0Yy9yYyINCi0JCQ0KKwkJbW91bnRf
ZGV2ZnMgZGV2ZnMgJHtqYWlsX3Jvb3RkaXJ9L2Rldg0KKwkJbW91bnQgLXQg
cHJvY2ZzIHByb2MgJHtqYWlsX3Jvb3RkaXJ9L3Byb2MJDQogCQlqYWlsICR7
amFpbF9yb290ZGlyfSAke2phaWxfaG9zdG5hbWV9ICR7amFpbF9pcH0gJHtq
YWlsX2V4ZWN9DQogCWRvbmUNCiB9DQo=
--138318368-198842015-1060768427=:19088--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0308131146260.19088-200000>