From owner-freebsd-questions Wed Aug 7 10:23:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA21998 for questions-outgoing; Wed, 7 Aug 1996 10:23:07 -0700 (PDT) Received: from seagull.rtd.com (root@seagull.rtd.com [198.102.68.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA21987 for ; Wed, 7 Aug 1996 10:23:04 -0700 (PDT) Received: (from dgy@localhost) by seagull.rtd.com (8.7.5/8.7.3) id KAA10287; Wed, 7 Aug 1996 10:22:44 -0700 (MST) From: Don Yuniskis Message-Id: <199608071722.KAA10287@seagull.rtd.com> Subject: Re: chroot To: branson@widomaker.com (Branson Matheson) Date: Wed, 7 Aug 1996 10:22:43 -0700 (MST) Cc: dgy@rtd.com, njensen@salsa.habaneros.com, dwhite@resnet.uoregon.edu, questions@freebsd.org In-Reply-To: <199608071719.NAA21556@garion.hq.ferg.com> from "Branson Matheson" at Aug 7, 96 01:19:03 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk It seems that Branson Matheson said: > Don Yuniskis uttered with conviction: > >It seems that Neil C. Jensen said: > > >> "chroot: /home/terminal: Operation not permitted" > > > >Umm, if you specify /usr/sbin/chroot as your login shell, doesn't > >it need to be listed in /etc/shells?? > > Also I believe it executes the shell as the username and not as root... and > I believe ( testing proved it ) that you have to run chroot as root. > > branson@garion >ls -la /usr/sbin/chroot > -r-xr-xr-x 1 bin bin 8192 Nov 16 1995 /usr/sbin/chroot* > branson@garion >chroot /tmp ls > chroot: /tmp: Operation not permitted > branson@garion >runas !! > runas chroot /tmp ls > chroot: ls: No such file or directory I believe he had made chroot suid(root)... though I may be mistaken as I came into this discussion late... --don