From owner-freebsd-questions@FreeBSD.ORG Sat Aug 14 14:17:52 2004 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 A6CB416A4CE for ; Sat, 14 Aug 2004 14:17:52 +0000 (GMT) Received: from mymail.netmagicians.com (mymail.netmagicians.com [202.87.39.126]) by mx1.FreeBSD.org (Postfix) with SMTP id 1E9BE43D41 for ; Sat, 14 Aug 2004 14:17:51 +0000 (GMT) (envelope-from sid@netmagicsolutions.com) Received: (qmail 28935 invoked from network); 14 Aug 2004 14:32:04 -0000 Received: from sid@netmagicsolutions.com by netmagicsolutions.com by uid 504 with qmail-scanner-1.16 (uvscan: v4.3.20/v4100. Clear:. Processed in 0.760295 secs); 14 Aug 2004 14:32:04 -0000 Received: from intra.netmagicsolutions.com (HELO ?10.1.1.161?) (202.87.39.242) by mymail.netmagicians.com with SMTP; 14 Aug 2004 14:32:03 -0000 Message-ID: <411E1F10.6010902@netmagicsolutions.com> Date: Sat, 14 Aug 2004 19:47:52 +0530 From: Siddhartha Jain User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Create multiple jails by copying 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: Sat, 14 Aug 2004 14:17:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I created one jail in FreeBSD 4.10. Since the compile time for make world and make distribution is too high, I copied the contents of jail1 to jail2 this way: jailbsd:/jails/jail1# find . | cpio -pdmv /jails/jail2 jail1 is functional. Now, when I run: # mount -t procfs proc /jails/jail2/proc (No complaints/errors) #jail /jails/jail2 jail2 10.1.1.173 /bin/sh /etc/rc I get an error from sendmail-client, sshd, cron, sendmail cannot chdir(/var/spool/clientmqueue/): Permission denied Program mode requires special privileges, eg., root or TrustedUser But "ps ax" reveals that in the jail: syslogd, sshd, cron are running but sshd kicks out the user after entering username/password. What do I need to modify in jail2 to make it work? I am guessing its some file permissions? Thanks, Siddhartha -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBHh8QOGaxOP7knVwRAvxjAJ0ZDekNiSIWmD67nD+kGZAZ09Dr9QCeJUyS EG9eGAZSmHheXV7qvYHjXXs= =ztKJ -----END PGP SIGNATURE-----