The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
nis users manoj123 Filesystems, Disks and Memory 3 07-31-2008 04:03 AM
Users in AIX Lost in AIX AIX 3 06-04-2007 02:44 PM
Users In AIX Lost in AIX UNIX for Dummies Questions & Answers 1 05-24-2007 04:12 PM
Users on AIX 5.2 aldowsary AIX 4 11-06-2006 10:30 PM
do i need these users? csaunders SUN Solaris 3 04-11-2006 02:45 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-28-2008
Amgrim Amgrim is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 3
How to log what users are doing??

Guys i am new in forum and come to ask some help in this. What i want is to log what users are doing. Someone told me to make a script and get the history commands of all users and storage this in a DB. but the problem in this is, i want to log all things. Why this? why my 2 machines is only a gateway to access routers and i need to log, 1- the username he logged in, 2- the router he used telnet and 3 - the username he used to login in router.
plz guys help me with this task...
the machine i have to do this is
SunOS xxxxxx 5.8 Generic_117350-24 sun4u sparc SUNW,Sun-Fire-480R

ty all
  #2 (permalink)  
Old 10-28-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,886
There's two or three ways. First, OS auditing can be used, but it's kind of weak, IMHO. Second, there exist programs that create taps into the pty devices, allowing you to monitor what users are doing as they are doing it. Third, You can monitor history files, but users can turn off history, or just do their stuff in secret via perl or sh. Finally, there's snoopy.

Snoopy works by being a shared library that is PRELOADed. It's built for UNIX, but should work as well for Solaris. Snoopy traps the library calls for exec() and sends the command and arguments to syslog. You can find it on sourceforge. I have made some enhancements, but the current author of snoopy is not responding to my patches. You can contact me if you need the updates.
  #3 (permalink)  
Old 10-28-2008
Amgrim Amgrim is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 3
Ty very much Otheus, i am looking now for snoopy, but i have a doubt...
this snoopy can log the username he use in a session with a routers?

Edited:

I am trying to install and i get some errors...
whe i use make this is what i get

gcc -shared -O3 -fomit-frame-pointer snoopy.c -osnoopy.so -ldl
snoopy.c: In function `log':
snoopy.c:74: `LOG_AUTHPRIV' undeclared (first use in this function)
snoopy.c:74: (Each undeclared identifier is reported only once
snoopy.c:74: for each function it appears in.)
make: *** [snoopy.so] Error 1


Sry if this is a simple problem, but i dont know much about unix/linux, i am new with this SO

Last edited by Amgrim; 10-28-2008 at 12:20 PM..
  #4 (permalink)  
Old 10-28-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,886
Look on sourceforge.net. It logs the userid, the command, and any arguments. No environment variables or input from STDIN are logged. So if he does:
Code:
$ telnet 192.168.3.2
you won't be able to tell what username/password he logs in, because it's not part of the command line. To do that, you should enable packet sniffing and customized filters which will get the relevant data for you. See tethereal and shark.
  #5 (permalink)  
Old 10-28-2008
Amgrim Amgrim is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 3
Ty Otheus, i go see what i can do now, any news i come here post
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0