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

Posted on 2009-02-08
Last Modified: 2013-11-17

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!
Question by:terrencetan
    LVL 40

    Expert Comment

    you need to basically enable accounting:
    LVL 68

    Accepted Solution


    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:

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

    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:

    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.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    About FreeBSD Jails In FreeBSD, jails are a way of doing operating system level virtualization.  The basis of FreeBSD jails is chroot (, which changes the root directory of processes.  As a…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now