From owner-freebsd-current@FreeBSD.ORG Mon Apr 5 07:15:55 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDB2E16A4CF for ; Mon, 5 Apr 2004 07:15:55 -0700 (PDT) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C28D43D45 for ; Mon, 5 Apr 2004 07:15:55 -0700 (PDT) (envelope-from ivoras@fer.hr) Received: from fer.hr (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id i35EH0sM024569 for ; Mon, 5 Apr 2004 16:17:00 +0200 (MEST) Message-ID: <40716941.5060101@fer.hr> Date: Mon, 05 Apr 2004 16:12:17 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Jail problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 14:15:55 -0000 I'm trying to setup several jails for the first time, but I'm having difficulties. After following instructions in man jail, when i start a shell in a jail, I cannot start top or ps in it; the error messages are: # top kvm_open: bad namelist # ps ps: bad namelist (on another jail they complain: kvm_open: /dev/null: No such file or directory; ... /kernel in the jail is linked to /dev/null as is stated in the manual; also, procfs is mounted ok.) Also, I have sshd_enable="YES" in the jail's /etc/rc.conf, and I see the sshd startup message when "booting" jail with /etc/rc, but the process isn't there. Starting 'sshd' on the command line seems to work, but upon loggin in to the jail a following warning is displayed: Warning: no access to tty (Bad file descriptor). Thus no job control in this shell. ... and the session seems to 'hang', after displaying some garbled lines of motd (I think). vipw cannot be started: vipw: pw_edit(): No such file or directory (/etc/master.passwd and /etc/spwd.db exist in the jail) This is probably something big and obvious I'm missing, but what? -- Every sufficiently advanced magic is indistinguishable from technology - Arthur C Anticlarke