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