*BSD News Article 38142


Return to BSD News archive

Xref: sserve comp.os.386bsd.bugs:2635 comp.os.386bsd.questions:14580
Newsgroups: comp.os.386bsd.bugs,comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!sunsite.doc.ic.ac.uk!uknet!festival!edcogsci!richard
From: richard@cogsci.ed.ac.uk (Richard Tobin)
Subject: Re: chroot() in FreeBSD 1.1.5.1
Message-ID: <CzKoIC.Bxy@cogsci.ed.ac.uk>
Organization: HCRC, University of Edinburgh
References: <3a95ui$anu@news.cc.utah.edu> <CzD6Dx.IKz@cogsci.ed.ac.uk> <CzEA7J.EH0@druid.com>
Date: Sun, 20 Nov 1994 15:32:36 GMT
Lines: 20

In article <CzEA7J.EH0@druid.com> darcy@druid.com (D'Arcy J.M. Cain) writes:
>: The real problem is how to get hold of "su" inside the chroot()ed
>: directory.

>OK, let's spell it out.

Thanks, I knew that.

>ln /bin/su .

This of course is the bit that might be tricky.  You have to be able
to make a hard link to su (or similiar).  If /tmp or (/usr/tmp, if it
exists) is on the right partition, you can do it.

-- Richard
-- 
Satan himself, in a sermon preached from the pulpit of North Berwick
church, comforted his many servants by assuring them that no harm could
befall them "sa lang as their hair wes on, an sould newir latt ane teir
fall fra thair ene".                    - J G Frazer, The Golden Bough