From owner-freebsd-questions Sat Mar 3 9:19:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gdmckee.local (pc-62-30-209-11-so.blueyonder.co.uk [62.30.209.11]) by hub.freebsd.org (Postfix) with ESMTP id ED5ED37B71B for ; Sat, 3 Mar 2001 09:19:50 -0800 (PST) (envelope-from freebsd@gdmckee.com) Received: from [192.168.0.5] (helo=p300) by gdmckee.local with smtp (Exim 3.20 #1) id 14ZFh5-000Jjk-00; Sat, 03 Mar 2001 17:19:47 +0000 Message-ID: <000b01c0a406$322ad200$0500a8c0@gdmckee.local> From: "G D McKee" To: "Bob Greene" Cc: "freebsd-questions" References: <001001c0a351$4eae5420$0500a8c0@gdmckee.local> <3A9FFA36.59E83935@tclme.org> Subject: Re: Jail USER in HOME dir Date: Sat, 3 Mar 2001 17:20:08 -0000 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 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Tried chroot $HOME /bin/sh and it doesn't work Has anyone got any ideas? Gordon PS Please can you reply DIRECT? ----- Original Message ----- From: "Bob Greene" To: "G D McKee" Sent: Friday, March 02, 2001 7:53 PM Subject: Re: Jail USER in HOME dir > man chroot > > chroot changes the users root '/' directory so that a 'cd /' only goes > as far back as you specify. In your case, 'cd /' would effectively be > 'cd $HOME' and 'cd ..' would not exceed their $HOME. > > G D McKee wrote: > > > > Hi > > > > How can I stop a user leaving their home dir? > > > > Gordon > > PS Please can you reply direct as I am not currently subscribed to the > > mailing list > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -- > Bob Greene > rgreene@TclMe.org > Pull my finger for my public key > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message