Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Aug 1996 13:19:03 -0400
From:      Branson Matheson <branson@widomaker.com>
To:        Don Yuniskis <dgy@rtd.com>
Cc:        njensen@salsa.habaneros.com (Neil C. Jensen), dwhite@resnet.uoregon.edu, questions@freebsd.org
Subject:   Re: chroot 
Message-ID:  <199608071719.NAA21556@garion.hq.ferg.com>
In-Reply-To: Your message of "Wed, 07 Aug 1996 08:55:17 PDT."  <199608071555.IAA01929@seagull.rtd.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
--------

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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608071719.NAA21556>