Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!castor!jxf From: jxf@castor.cis.ksu.edu (Jerry Frain) Newsgroups: comp.unix.misc Subject: Re: Who's in my Directory ? Message-ID: <1990Nov21.013355.16798@maverick.ksu.ksu.edu> Date: 21 Nov 90 01:33:55 GMT References: <1990Nov21.004657.10564@mcs.kent.edu> Sender: news@maverick.ksu.ksu.edu (The News Guru) Organization: Kansas State University Lines: 24 dpavlich@math-cs.kent.edu (Dave Pavlich) writes: > Is there a way on unix to find out if someone has 'cd''d into your > directory ? I've tried checking processes ( almost impossible ) and I don't > want to set protection on these directories. Is there a shell program or > is it impossible ? It isn't possible in any conventional way that I know of, however, a friend of mine once create an 'ls' binary that he placed in his home directory which logged a message to some predetermined log file, and then exec'd /bin/ls with the original arguments. Doesn't work if they have /bin in their path before '.', though, but it still caught a lot of people snooping. --Jerry -- Jerry Frain -- Systems Programmer Kansas State University Department of Computing & Info Sciences Internet : jxf@cis.ksu.edu Manhattan, Kansas UUCP : ...!rutgers!ksuvax1!jxf