|
-
Hammerhead Shark
logging user login info in the c shell
I want to log the info of when I or someone pretending to be me log into my school servers.
One of my friend's account was recently comprimised at his school, and the only reason he knew was that he was logging the connection info.
I have set up a "logging" scheme as follows:
in my .login file I have
Code:
echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>.logfile
date>>.logfile
echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>.logfile
finger MYUSERNAME >>.logfile
that is pretty rudimentary, but it works as long as any intruder isn't watching (but then again if I get hit by someone really good I am sorta screwed anyway)
can you think of any better ways to do what I doing and/or additions?
how can I mail a report to a 3rd party (well me actually, but a different account) automatically?
Thanks people.
p.s. also is there a way to log a mailbox? this mailbox is pop/imap (can use either) so you don't need to log into a server to check the mail. Are there any options here for me when I have no admin rights on the mail server?
yeah I know that I am paranoid, but you know.....
edit: man this vB formatting really sucks!
Last edited by hobbes2112; 03-05-2002 at 06:27 PM.
-
NullPointerException
I'd suggest sticking a "who" in there was well, since often the user will be already on the system somewhere - especially the caliber of person you're going to catch with this script.
Then at the bottom, you can add this line:
mail [email protected] < .logfile
Open Source is free like a puppy is free.
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Understanding Evolution
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|