From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 02:53:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F8937B401 for ; Wed, 13 Aug 2003 02:53:50 -0700 (PDT) Received: from ux1.ibb.net (ux1.ibb.net [62.8.32.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CAF343F85 for ; Wed, 13 Aug 2003 02:53:49 -0700 (PDT) (envelope-from mipam@ibb.net) Received: from localhost (mipam@localhost) by ux1.ibb.net (8.9.3/8.9.3/UX1TT) with ESMTP id LAA19141; Wed, 13 Aug 2003 11:53:47 +0200 Date: Wed, 13 Aug 2003 11:53:47 +0200 (MET DST) From: Mipam To: Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="138318368-198842015-1060768427=:19088" Subject: rc.d jail script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 09:53:50 -0000 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: Content-Description: Content-Disposition: attachment; filename=jail_diff LS0tIC91c3Ivc3JjL2V0Yy9yYy5kL2phaWwJTW9uIE1heSAgNSAxNzozODo0 MSAyMDAzDQorKysgL2V0Yy9yYy5kL2phaWwJV2VkIEF1ZyAxMyAxMToyODox OSAyMDAzDQpAQCAtNTQsNyArNTQsOCBAQA0KIAkJZXZhbCBqYWlsX2lwPVwi XCRqYWlsXyR7X2phaWx9X2lwXCINCiAJCWV2YWwgamFpbF9leGVjPVwiXCRq YWlsXyR7X2phaWx9X2V4ZWNcIg0KIAkJWyAteiAke2phaWxfZXhlY30gXSAm JiBqYWlsX2V4ZWM9Ii9iaW4vc2ggL2V0Yy9yYyINCi0JCQ0KKwkJbW91bnRf ZGV2ZnMgZGV2ZnMgJHtqYWlsX3Jvb3RkaXJ9L2Rldg0KKwkJbW91bnQgLXQg cHJvY2ZzIHByb2MgJHtqYWlsX3Jvb3RkaXJ9L3Byb2MJDQogCQlqYWlsICR7 amFpbF9yb290ZGlyfSAke2phaWxfaG9zdG5hbWV9ICR7amFpbF9pcH0gJHtq YWlsX2V4ZWN9DQogCWRvbmUNCiB9DQo= --138318368-198842015-1060768427=:19088--