From owner-freebsd-questions Wed Aug 7 10:19:33 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA21406 for questions-outgoing; Wed, 7 Aug 1996 10:19:33 -0700 (PDT) Received: from garion.hq.ferg.com (pm1-14.wmbg.widomaker.com [204.17.220.114]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA21399 for ; Wed, 7 Aug 1996 10:19:29 -0700 (PDT) Received: from localhost.hq.ferg.com (localhost.hq.ferg.com [127.0.0.1]) by garion.hq.ferg.com (8.6.12/8.6.12) with SMTP id NAA21556; Wed, 7 Aug 1996 13:19:04 -0400 Message-Id: <199608071719.NAA21556@garion.hq.ferg.com> X-Authentication-Warning: garion.hq.ferg.com: Host localhost.hq.ferg.com didn't use HELO protocol X-Mailer: exmh version 1.6.7 5/3/96 From: Branson Matheson To: Don Yuniskis cc: njensen@salsa.habaneros.com (Neil C. Jensen), dwhite@resnet.uoregon.edu, questions@freebsd.org Subject: Re: chroot In-reply-to: Your message of "Wed, 07 Aug 1996 08:55:17 PDT." <199608071555.IAA01929@seagull.rtd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Aug 1996 13:19:03 -0400 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk -------- 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 -branson -- ============================================================================= Branson Matheson | Ferguson Enterprises | If Pete and Repeat were System Administrator | W: (804) 874-7795 | sittin on a fence and Pete Unix, Perl, WWW | branson@widomaker.com | fell off, who is left?