AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  EXTENDED_HISTORY variable

    Posted 01/23/08 05:43 AM

    Originally posted by: grukrz1


    How to get terminal a command was executed in?

    Having EXTENDED_HISTORY=ON, I can't pinpoint it.

    eg.

    1845 2008/01/23 09:48:23 :: mailq
    1846 2008/01/23 09:49:00 :: mailx
    1847 2008/01/23 09:49:02 :: mail
    1848 2008/01/23 09:50:13 :: vi /etc/hosts
    The problem is when more than one users logged on the same account to the system. Then their activities are mixed in history.
    Maybe someone of you have another idea how to record activities of users in a system - collecting date, time, terminal and command.

    I tried also with 'acctcom /var/adm/pacct' but it doesn't show 'date', only time eg.:

    #cp root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
    #acctwtmp root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
    #fwtmp root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
    #awk root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
    #sed root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
    Thank you in advance,!
    #AIX-Forum


  • 2.  Re: EXTENDED_HISTORY variable

    Posted 01/25/08 06:52 AM

    Originally posted by: SystemAdmin


    This is just my thought ,

    If the user is loging in with his own user name and switching to a common user , then probably you could redirect their history files to a diff history file , probably by making changes to his profile to redirect his history to 'who am i'.history

    AIX/Linux Administrator
    #AIX-Forum