home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / admin / 6741 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!gatech!emory!rigel.econ.uga.edu!marie!david
  2. From: david@marie.stat.uga.edu (David Gundlach)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: showing working dirs of each users
  5. Summary: peek
  6. Message-ID: <1992Dec21.231539.10319@rigel.econ.uga.edu>
  7. Date: 21 Dec 92 23:15:39 GMT
  8. References: <1992Dec21.082746.23803@latcs1.lat.oz.au> <78677@hydra.gatech.EDU> <1992Dec21.182510.10975@dcs.warwick.ac.uk>
  9. Sender: news@rigel.econ.uga.edu
  10. Organization: UGA Statistics Department
  11. Lines: 51
  12.  
  13. And then in <1992Dec21.182510.10975@dcs.warwick.ac.uk>, rince@dcs.warwick.ac.uk (James Bonfield) said...
  14. % In <78677@hydra.gatech.EDU> gs26@prism.gatech.EDU (Glenn R. Stone) writes:
  15. % > In <1992Dec21.082746.23803@latcs1.lat.oz.au> wongm@latcs1.lat.oz.au (M.C. Wong) writes:
  16. % > >  I wonder if there is any utility that shows which working dir each
  17. % > >  of the users are in, much like the finger and w command but also shows
  18. % > >  where they are. Thank you !!
  19. % > 
  20. % > Not that I know of; I do know that it would be a royal pain to do (probably
  21. % > involving C and setuid executables) on a SysV box... but if you luck out
  22. % Well - I know it's possible by having a program (setgid to kmem to get access
  23. % to /dev/vmunix, /dev/mem, /dev/drum and /dev/kmem probably) that reads the
  24. % directory from the user structure associated with the appropriate process. I
  25. % never got around to finishing the version I was writing as I couldn't be
  26. % bothered with all the tedious 'what if it's swapped out' type stuff.
  27.  
  28. In fact, it's been done.  Brendan Kehoe wrote (as of 12-17-90) peek.c,
  29. which does all of this.  From the little blurb:
  30.  
  31.  * Peek in and see what directory a user's sitting in, along with
  32.  *  what they happen to be doing at the time, and if they've set
  33.  *  id to someone else. (An R means they're setuid to root, a '*'
  34.  *  means they're setuid to someone else.) Remember, many programs do
  35.  *  the setuid themselves [e.g. xterm], so don't freak if you see an R
  36.  *  there.
  37.  *
  38.  
  39. It has a companion program called 'force', which allows you to force
  40. keystrokes onto a terminal line.  Not for playing around (not nice!),
  41. but they can be handy at times.
  42.  
  43. %     James
  44. % -- 
  45. % James Bonfield (jkb@mrc-lmba.cam.ac.uk / rince@dcs.warwick.ac.uk)
  46. % Medical Research Council Laboratory of Molecular Biology, Hills Road,
  47. % Cambridge, CB2 2QH, England. Tel: 0223 402499   Fax: 0223 412282
  48.  
  49.  
  50.  
  51. :-D
  52. --
  53. David Gundlach                david@marie.stat.uga.edu
  54. System Support and Integration        david@rolf.stat.uga.edu
  55. UGA Statistics                david@castor.cs.uga.edu
  56. University of Georgia            david@groucho.dev.uga.edu
  57. 706/542-3289 or 706/542-5232        BITNET: statuga@uga
  58.  
  59. "I think, therefore I am wrong." --     me
  60.