home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4568 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.0 KB  |  25 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!mcsun!dxcern!dxcern!cons
  3. From: cons@mercury.cern.ch (Lionel Cons)
  4. Subject: Re: Detecting if running under chroot
  5. In-Reply-To: mark@coombs.anu.edu.au's message of 7 Nov 92 07:32:18 GMT
  6. Message-ID: <CONS.92Nov9100404@mercury.cern.ch>
  7. Sender: news@dxcern.cern.ch (USENET News System)
  8. Organization: CERN, European Research Center for Particle Physics
  9. References: <1992Nov3.183208.20956@newsgate.sps.mot.com> <mark.721121538@coombs>
  10. Date: Mon, 9 Nov 1992 09:04:04 GMT
  11. Lines: 12
  12.  
  13. I know a way to see if I run under chroot on my OS (HP-UX) and I think
  14. it should work on many different platforms: the inode number of / is
  15. always 2, so 'ls -id' will tell me...
  16. --
  17.  
  18. Lionel Cons
  19.  
  20. +------- CERN - European Laboratory for Particle Physics -------+
  21. | E-mail: cons@dxcern.cern.ch                                   |
  22. | Earth-mail: CN/SW/WS, CERN, CH-1211 GENEVE 23, Switzerland    |
  23. | Phone: +41 22 767 49 13              Fax: +41 22 767 71 55    |
  24. +---------------------------------------------------------------+
  25.