Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

How to I enable the script function in AIX system to capture every single commands of users?

Hi,

The AIX system currently running on AIX 5.3. I would like to enable the function in AIX which will capture every single activities by users when they log into the system.

Could anybody advice how to I implement it and the steps to implement it?

Thanks in advanced!
0
terrencetan
Asked:
terrencetan
1 Solution
 
omarfaridCommented:
you need to basically enable accounting:

http://www.redbooks.ibm.com/abstracts/sg246020.html
0
 
woolmilkporcCommented:
Hi,

do you really mean every single keystroke of any logged-in user?
This could give you tons of output!

Why do you need such a function?
Wouldn't it be enough to enable auditing, in a way that only selected, important activities
will be logged? Of course this is configurable according to your needs, as detailed as you like.
An IBM Redbook covering this is here:

http://www.redbooks.ibm.com/abstracts/sg246396.html

IBM provides much more info about auditing.
To find it, start from here:

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp


If you want to record everything nonethless, there is an auditing feature in ksh93.
Have a first look at it and find a downloadable audit-enabled version of ksh93 here:

http://www.ibm.com/developerworks/aix/library/au-korn93/index.html?S_TACT=105AGX20&S_CMP=EDU


I think, 'script' is not an option here, as it will start a subshell which could easily be left using 'exit'.

Please come back here and tell me how you'd like to proceed. I would try to help then, if necessary.


wmp


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now