home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!pipex!warwick!dcs.warwick.ac.uk!rince
- From: rince@dcs.warwick.ac.uk (James Bonfield)
- Subject: Re: showing working dirs of each users
- Message-ID: <1992Dec21.182510.10975@dcs.warwick.ac.uk>
- Sender: news@dcs.warwick.ac.uk (Network News)
- Nntp-Posting-Host: stone
- Organization: Department of Computer Science, Warwick University, England
- References: <1992Dec21.082746.23803@latcs1.lat.oz.au> <78677@hydra.gatech.EDU>
- Date: Mon, 21 Dec 1992 18:25:10 GMT
- Lines: 22
-
- 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.
-
- 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
-