The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question !

Discussion in 'General Discussion' started by jestin_virtual, Oct 10, 2009.

  1. jestin_virtual

    jestin_virtual Active Member

    Joined:
    Sep 2, 2009
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Hello .

    Please help me in below issues


    1 - i want to know how to find the post which i have already submitted , i went to the user CP but couldn`t find the option to check my post(S)

    2 - how to check the date in history command , in fact i need the history including DATE


    Thank YOUU
     
  2. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
  3. jestin_virtual

    jestin_virtual Active Member

    Joined:
    Sep 2, 2009
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    i think someone has deleted the logs because when i`m using LAST Command server showed the ip`s which connected from 1st of OCT and not before that !!

    anyway "history command" has works and all the commands are entered by me , so what`s wrong ? why "Last command" shoes the log from 1st-Oct
     
  4. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
    When you run the last command, what does the last line show in the output..it will have the date and time.

    wtmp begins.....
     
  5. jestin_virtual

    jestin_virtual Active Member

    Joined:
    Sep 2, 2009
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Dear, i told i need the History command including DATE :) plz review the past post once again

    tnx
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The link serversignature provided previously gave steps on how to add the date to history. Simple edit /etc/profile on the server, and add this to the bottom:

    Code:
    export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
    You will need to leave the server (exit) then re-log into it and you'll get the date and time included when you run history at that point forward.

    If this isn't what you are looking for, please let us know what you still are requiring to be able to do, since I apologize if I likewise am not certain.
     
  7. DomineauX

    DomineauX Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    414
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    As for seeing previous logins using the "last" command, the log file used is rotated monthly so you may want to read the previous month's file using:

    Code:
    last -f /var/log/wtmp.1
     
  8. saninfosys.com

    Joined:
    Oct 4, 2009
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page