Go Back   The UNIX and Linux Forums > Operating Systems > AIX


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-04-2012
Registered User
 
Join Date: Jan 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
How to find the log for executed command in IBM AIX?

In Unix If we executed any command where will generate the particluar log related to command in Unix.
Sponsored Links
    #2  
Old 07-04-2012
admin_xor's Avatar
Registered User
 
Join Date: Jun 2011
Posts: 450
Thanks: 13
Thanked 77 Times in 74 Posts
I do not think without the auditing subsystem if this is possible. But, if your users are honest and if you are root or have root like privileges, you can find /home/username/.sh_history file which contains the executed commands history.
Sponsored Links
    #3  
Old 07-04-2012
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 3,297
Thanks: 27
Thanked 454 Times in 353 Posts
I have once tried to port Snoopy logger to AIX and gave up after a couple of days. Somehow it is not possible to preload a library in AIX so overriding the execve() system call won't work.

I agree wiht admin_xor: without the auditing subsystem true command logs can't be implemented.

I hope this helps.

bakunin
    #4  
Old 07-06-2012
Registered User
 
Join Date: Jan 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for yours valuable reply...
I will check it...
Sponsored Links
    #5  
Old 08-10-2012
Registered User
 
Join Date: Aug 2012
Posts: 24
Thanks: 1
Thanked 2 Times in 2 Posts
I posted in another thread about this, but no harm mentioning here.
Rootsh on sourceforge will sort you out.
Logs everything to syslog (NB if you choose to log output as well as input and someone cats [or similar] a massive file, the output logs to syslog which can be significant overhead)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find last executed timestamp ysrini UNIX for Dummies Questions & Answers 2 02-09-2012 09:08 AM
Need help! command working ok when executed in command line, but fails when run inside a script! 4dirk1 Shell Programming and Scripting 4 12-02-2010 05:47 AM
cron Executed Script Can't Find Command Chivalry Shell Programming and Scripting 3 03-12-2009 03:01 PM
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 08:12 PM
how to find the exit status for the last executed command vijay.amirthraj UNIX for Dummies Questions & Answers 1 07-04-2006 10:14 PM



All times are GMT -4. The time now is 12:58 PM.