Miscellaneous: watch: How to snoop on your users.(last edit: 2001-05-01)
In a fit a boredness I decided I wanted to know what the hell other people were doing,
hence I decided to make watch work. Watch is a tool that allows the superuser to see
what other people are doing on their tty's. But sadly it doesn't work out of the box
with freebsd, any you should see this error:
watch: fatal: cannot open snoop device
To get it to work you need to do the following:
You will need to recompile your kernel with this option:
pseudo-device snp 3
For help with recompiling it see another doc on this site.
You will need to make some devices. Go to /dev/ and make the following devices:
Just see who's on with the "w" command and start looking with commands such as
# watch ttyp0
If you also want write access on their tty also use the -W option.
Happy sleuthing ;-)
mail questions to Iemail@example.com
Click here to go back to the index.