From owner-freebsd-questions Tue Sep 24 9:42: 8 2002 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 6362937B401 for ; Tue, 24 Sep 2002 09:42:07 -0700 (PDT) Received: from wxp.homeip.net (adsl-212-101-16-119.solnet.ch [212.101.16.119]) by mx1.FreeBSD.org (Postfix) with SMTP id 9028743E42 for ; Tue, 24 Sep 2002 09:42:05 -0700 (PDT) (envelope-from pbrossin@swissgeeks.com) Received: (qmail 24301 invoked by uid 8); 24 Sep 2002 16:42:03 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP id smtpdqKoAf7; Tue, 24 Sep 2002 12:41:56 EDT Received: from nitrox (pierrick.wxp.homeip.net [10.0.0.50]) by server.wxp.homeip.net (AvMailGate-2.0.0.9) id 24275-65200F5E; Tue, 24 Sep 2002 18:41:56 +0200 Message-ID: <000d01c263e9$49c34920$3200000a@nitrox> Reply-To: "Brossin Pierrick" From: "Brossin Pierrick" To: "FreeBSD Questions" References: <3D908C45.3000302@trini0.org> Subject: Re: Chroot Date: Tue, 24 Sep 2002 18:41:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-AntiVirus: OK! AntiVir MailGate Version 2.0.0.9; AVE: 6.15.0.1; VDF: 6.15.0.8 at wxp.homeip.net has not found any known virus in this email. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, || Im trying to figure out how to restrict users from leaving their home || directories. || I would enter the new directory /usr/home/developer and issue the || chroot command -> || hivemind# chroot /usr/home/developer || chroot: /bin/csh: No such file or directory It's because a chrooted directory is like the root dir of your system ! You have to create 'bin' 'etc' and stuff into /usr/home/developer. You should also copy csh into /usr/home/developer/bin. Your chrooted system will be completely independent of your system. This means if the user developer logs on, he won't be able to access the real /etc for example. I hope I'm clear enough. www.google.com for more info .. just type in "freebsd chroot". || What am I doing wrong?? || Also when this is set, how do I make it persist throught reboots. || Make my own script in /usr/local/etc/rc.d ??? || Thanks for any insight you may provide.... Just create a shell script and run it instead of running tcsh or sh or ... run 'vipw' and change it. Cya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message