home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1002 / README < prev   
Text File  |  1990-12-28  |  2KB  |  38 lines

  1. > [.. in reply to a letter to Mike about "ofiles" ..]
  2. > Well, I recently ran across a posting of something called "ofiles" for
  3. > BSD, and remembering your message, I decided to see if it ported
  4. > easily to the Unix PC.  It did, and here it is, although it doesn't
  5. > seem to exactly fit your description.  It seems to be just a "fuser"
  6. > program with slightly fancier output.
  7. > Here's the BSD version and the Unix PC version.  If you can track down
  8. > the program you were talking about, I'd like to see it.
  9. >                     -=] Ford [=-
  10. > "The number of Unix installations    (In Real Life:  Mike Ditto)
  11. > has grown to 10, with more expected."    ford@kenobi.cts.com
  12. > - The Unix Programmer's Manual,        ...!sdcsvax!crash!elgar!ford
  13. >   2nd Edition, June, 1972.        ditto@cbmvax.commodore.com
  14.  
  15. I hacked on this to produce a version which runs on SCO Xenix/386 2.2.3.
  16. The biggest changes involved dealing with the floating structures in UNIX
  17. for the 3B1.  Strange machine ...
  18.  
  19. I added code to locate the inode for the text table entry, if the process
  20. structure indicated one existed.  This prints as an 'x' character.  I also
  21. added setuid() calls around the opens of the device files which required
  22. root privilege.  Yes, it was possible to install this program as SUID root
  23. and have anyone be able to determine the status of any file on the system,
  24. even if the user would not normally have access to that file.  Not exactly
  25. a good idea ...
  26.  
  27. The code has had all of the 3B1 dependent things removed and a little
  28. spring cleaning applied.
  29.  
  30. - John.
  31. --
  32. John F. Haugh II                             UUCP: ...!cs.utexas.edu!rpp386!jfh
  33. "A friend of BIFF'S for a fifth of a year"        Domain: jfh@rpp386.cactus.org
  34.