Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Welcome to the pSeries Tech Forums, our free peer-based support site for administrators, engineers and architects working with IBM pSeries servers and software.

You are currently viewing our site as a guest which gives you limited access to view most discussions, articles, tutorials and access our other free features. By joining our community you will be able to collaborate with administrators, engineers and architects charged with designing, delivering or maintaining IBM pSeries server environments.

Founded by a recognized IBM pSeries consultant and IBM Redbook author, pSeries Tech Forums was developed with the single mission of bringing IBM pSeries professionals together into a single self-help community.

Registration is fast, simple and absolutely free to all IT professionals with responsibility for or interest in IBM pSeries servers. We invite you to join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old May 12th, 2008
adeel123's Avatar
adeel123 Offline
Member
 
Join Date: February 2008
Posts: 30
IP address required in auditing

hi,

i have enabled auditing on my AIX machine and its working fine. but i have 1 problem. incase if i view the audit log file i can not identify that user XYZ who did ...... changes was logged in from which tty or pts or what was his ip address.
can any 1 help me tht how can i also add ip feature in audit tht i come to know tht XYZ logged in from 192.168.0.8 and remove the file.

waiting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old May 19th, 2008
john.samons's Avatar
john.samons Offline
Meditating on the code...
 
Join Date: September 2007
Location: Johannesburg, South Africa
Posts: 95
Re: IP address required in auditing

Personally I don't use audit, except if it is explicitly required by the customer. It can pose a significant load on the system and to find anything is a mission. It's like looking for a needle in a hey stack!

I created some scripts that gets started automatically when the user logs in or when he su's to another user. Basically I use the 'script' command to log all activities of that user, and I also track his .sh_history. I store my files separately in a file system, i.e. wally.script.date.time.gz. I also store a bit of info from where the user came from etc....

Look into it, maybe it works for you too....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 20th, 2008
adeel123's Avatar
adeel123 Offline
Member
 
Join Date: February 2008
Posts: 30
Re: IP address required in auditing

John can u plz pass on me tht scripts so that ill check.
i m sorry every time i bother you brother but i m bit new in this field so in little problem. .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 20th, 2008
john.samons's Avatar
john.samons Offline
Meditating on the code...
 
Join Date: September 2007
Location: Johannesburg, South Africa
Posts: 95
Re: IP address required in auditing

Well I can't exactly send you my complete scripts as they are in production use at customers (security) but I can explain how to do it and what I used (in a broad sense)...

You have to install sudo, download it free on the net. Then configure sudo with the visudo command:
visudo - this edits the sudoers file.
add (some of my contents):
User_Alias ROOT_ALLOW_SU=myuser,anotheruser
ROOT_ALLOW_SU ALL = NOPASSWD: /usr/local/bin/suroot

Inside the suroot script you can do some checks to make sure the suscript exists and then execute it. Also add this code to the .profile of the root user, so when he's logged in the script ot executed as well..

Then the suscript, mine is quite long and complex, checking for various things, securing variables, compressing old files etc... but basically it calls:

/usr/bin/script -a $SCRIPTFILE

where scriptfile is your file you choose to keep the history in.


So all actions is logged from the moment any user logs in and when he su's to root.


To su to root then:
sudo suroot


For all those concerned with security, this assumes that the administrator has applied proper security to the system, and that root is secure. The above will provide monitoring as well as a method of giving root access to trusted individuals without giving them the password. If that's not required, remove the suroot permission from sudo. However the 'script' command can still be used to auditing....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac aa00e1f3 aio aix aix aio aix freeware aixif_arp_dup_addr b150f22a b181f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 fcp_array_err6 fget_config gnu tar aix gsclvmd gtar aix hi yall hmc root password hmc vmware hscl05db ibm p6 ibm p6 520 libpopt aix libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseries pseriestech rsync aix sc_disk_err4 scan_error_chrp vio server websm xhost file ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50