Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 1996 10:22:43 -0700 (MST)
From:      Don Yuniskis <dgy@rtd.com>
To:        branson@widomaker.com (Branson Matheson)
Cc:        dgy@rtd.com, njensen@salsa.habaneros.com, dwhite@resnet.uoregon.edu, questions@freebsd.org
Subject:   Re: chroot
Message-ID:  <199608071722.KAA10287@seagull.rtd.com>
In-Reply-To: <199608071719.NAA21556@garion.hq.ferg.com> from "Branson Matheson" at Aug 7, 96 01:19:03 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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



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