home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / bugs / sys5 / 96 next >
Encoding:
Text File  |  1992-08-16  |  1.0 KB  |  27 lines

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