Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.i386 Subject: Re: chroot(1M) Message-ID: <1989Dec2.024951.18611@virtech.uucp> Date: 2 Dec 89 02:49:51 GMT References: <10358@attctc.Dallas.TX.US> <1989Nov28.134104.6252@virtech.uucp> <628454203.18188@myrias.com> Organization: Virtual Technologies Inc. Lines: 17 In article <628454203.18188@myrias.com>, dab@myrias.com (Danny Boulet) writes: > In article <1989Nov28.134104.6252@virtech.uucp> cpcahil@virtech.uucp (Conor P. Cahill) writes: > >A clean way to do this is to use a little known function of login (yes, it > >is documented). If login sees an * as the login shell for a particular user, > >it will chroot to the user's directory and re-execute /etc/login. > > Interesting. What versions of UNIX support this? I have found it documented back to System V Release 2.1. I don't know where it started. I never noticed it until I was working on some modifications to login in system V Release 3. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+