home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / admin / 6739 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!pipex!warwick!dcs.warwick.ac.uk!rince
  3. From: rince@dcs.warwick.ac.uk (James Bonfield)
  4. Subject: Re: showing working dirs of each users
  5. Message-ID: <1992Dec21.182510.10975@dcs.warwick.ac.uk>
  6. Sender: news@dcs.warwick.ac.uk (Network News)
  7. Nntp-Posting-Host: stone
  8. Organization: Department of Computer Science, Warwick University, England
  9. References: <1992Dec21.082746.23803@latcs1.lat.oz.au> <78677@hydra.gatech.EDU>
  10. Date: Mon, 21 Dec 1992 18:25:10 GMT
  11. Lines: 22
  12.  
  13. In <78677@hydra.gatech.EDU> gs26@prism.gatech.EDU (Glenn R. Stone) writes:
  14.  
  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. > Not that I know of; I do know that it would be a royal pain to do (probably
  20. > involving C and setuid executables) on a SysV box... but if you luck out
  21.  
  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.     James
  29.  
  30. -- 
  31. James Bonfield (jkb@mrc-lmba.cam.ac.uk / rince@dcs.warwick.ac.uk)
  32. Medical Research Council Laboratory of Molecular Biology, Hills Road,
  33. Cambridge, CB2 2QH, England. Tel: 0223 402499   Fax: 0223 412282
  34.