home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.bugs.sys5
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!mmm.serc.3m.com!pwcs!medtron!rosevax!minnow!unirsvl !8young
- From: 8young@rsvl.unisys.com (James A Young )
- Subject: Re: chroot feature of V.4.0 login(1)
- Message-ID: <1992Aug11.152910.13797@rsvl.unisys.com>
- Organization: Unisys - Roseville, MN
- Date: Tue, 11 Aug 92 15:29:10 GMT
- Lines: 17
-
- With some help from a couple of people on the Internet I was able to get
- the chroot feature of login(1) to work. My problem was that my /root/dev
- directory was in a mounted file system. login(1) calls ttyname(3C), which
- checks to see if the following conditions exist when it is searching for
- the file name of the parameter passed in from login(1):
-
- a) major & minor device numbers
- b) inode number
- c) file system ID
-
- If it fails to match on all three it will settle for just a) AND c). Since I
- had created my sublogin root directory in a mounted file system I never got a
- match.
-
- Jim Young 8young@rsvl.unisys.com
- Roseville Development Center
- Unisys Corp.
-