*BSD News Article 37791


Return to BSD News archive

Xref: sserve comp.os.386bsd.bugs:2588 comp.os.386bsd.questions:14390
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!ra.nrl.navy.mil!cs.umd.edu!newsfeed.gsfc.nasa.gov!news!kstailey
From: kstailey@leidecker.gsfc.nasa.gov (Kenneth Stailey)
Newsgroups: comp.os.386bsd.bugs,comp.os.386bsd.questions
Subject: Re: chroot() in FreeBSD 1.1.5.1
Date: 12 Nov 1994 17:16:30 GMT
Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
Lines: 20
Message-ID: <KSTAILEY.94Nov12121630@leidecker.gsfc.nasa.gov>
References: <39vvl6$90m@clavin.uprc.com> <3a06kq$9bs@dagny.galt.com>
	<Cz48o2.4KB@twwells.com>
NNTP-Posting-Host: leidecker.gsfc.nasa.gov
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
In-reply-to: bill@twwells.com's message of Fri, 11 Nov 1994 18:28:49 GMT

In article <Cz48o2.4KB@twwells.com> bill@twwells.com (T. William Wells) writes:

   Newsgroups: comp.os.386bsd.bugs,comp.os.386bsd.questions
   Path: news.gsfc.nasa.gov!newsfeed.gsfc.nasa.gov!ames!hookup!olivea!news.hal.COM!decwrl!twwells!bill
   From: bill@twwells.com (T. William Wells)
   Organization: None, Mt. Laurel, NJ
   References: <39vvl6$90m@clavin.uprc.com> <3a06kq$9bs@dagny.galt.com>
   Date: Fri, 11 Nov 1994 18:28:49 GMT
   Lines: 7
   Xref: news.gsfc.nasa.gov comp.os.386bsd.bugs:2787 comp.os.386bsd.questions:15677

   : I'm not sure why its implemented this way.  I thought I would find an
   : answer in Leffler, et al, but I just checked and it didn't say.  The source
   : code for the system call doesn't say either.

   Sigh. What do you think happens when you make a shiny new
   directory hierarchy with an edited copy of /etc/passwd, chroot to
   it, and then run su?

Add hosts.equiv and you've got quite a bit of power.