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