From owner-freebsd-security Sat Feb 10 10:42:17 1996 Return-Path: owner-security Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA04286 for security-outgoing; Sat, 10 Feb 1996 10:42:17 -0800 (PST) Received: from anna.az.com (anna.az.com [204.57.139.9]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA04279 for ; Sat, 10 Feb 1996 10:42:14 -0800 (PST) Received: (from yankee@localhost) by anna.az.com (8.6.12/8.6.12) id KAA28832; Sat, 10 Feb 1996 10:42:54 -0800 Date: Sat, 10 Feb 1996 10:42:54 -0800 (PST) From: "az.com" To: freebsd-security@freebsd.org Subject: Need help building jails (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-security@freebsd.org Precedence: bulk 2 questions: 1. Haven't been above to build a jail yet with chroot! Haven't been able to get chroot to work, any ideas? Want to do a chroot immediately upon login for certain accounts and make twilight zone versions of /usr/home,/usr/bin,/usr/sbin,/bin,/sbin,/usr/local/bin in a directory called /usr/jail chroot just gives an error when I try to use it from /etc/passwd, or .login, or at the csh: chroot: jail: Operation not permitted. I've tried endless permutations of permissions and configurations, nothing seems to work. If I'm super user, chroot works. Wanted to put a chroot in the best location, presumably not .login or .cshrc, but instead right in the /etc/passwd file as what to execute at login. 2. Can I find code for FreeBSD to do exactly the same thing as chroot with ftpd? 3. Can I find code for FreeBSD to do exactly the same thing as chroot with httpd? Thank You!