Results 1 to 11 of 11

Thread: how to increase the no of login history in login.hist file

  1. #1
    Join Date
    Jun 2011
    Location
    Russia
    Posts
    38

    how to increase the no of login history in login.hist file

    in my vps only last 6-7 days login history save in login.hist file
    how can i increase this limit

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,307

  3. #3
    Join Date
    Mar 2018
    Posts
    5

    Link Doesn't Work !

    hi , thanks for your answer but your link doesn't work !

    http://www.directadmin.com/features.php?id=239

    what should i do ?

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,307
    It does. Try a proxy serer if the page is blocked for you.

    https://www.directadmin.com/features.php?id=239

  5. #5
    Join Date
    Mar 2018
    Posts
    5

    login history value not work !

    thanks about your answer , i changed the login_history=1000 but it doesn't work , when open the login.hist of each user it just show 10 number of login !

    i want to see all of user login .

    thanks again

  6. #6
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,307
    1. That usually happens due to missing a final line-break in directadmin.conf

    Control it with:

    Code:
    /usr/local/directadmin/directadmin c | grep ^login_history=


    if you see

    Code:
    # /usr/local/directadmin/directadmin c | grep ^login_history=login_history=10
    you need to add line-break after
    Code:
    login_history=1000
    and restart directadmin.


    2. It won't show logins from earlier times... it will collect new data and show new logins after they occur.

  7. #7
    Join Date
    Mar 2018
    Posts
    5

    not change !

    thanks again about your answer . i did the solution you say but when i run the

    Code:
    /usr/local/directadmin/directadmin c | grep ^login_history=
    result show :
    login_history=10

  8. #8
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,307
    Do you know what is a line break or a newline? It's mentioned in #6 and you need to add it.

    Check this: https://en.wikipedia.org/wiki/Newline
    Last edited by zEitEr; 03-26-2018 at 05:37 AM.

  9. #9
    Join Date
    Mar 2018
    Posts
    5

    !

    yes , i add line break after login_history=1000

    but nothing change !

  10. #10
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,307
    OK, found out the max allowed value is 100. It's hardcoded. If you need more you need to contact directadmin developers via tickets and ask them for it. That's fully up to them implement it or not.

  11. #11
    Join Date
    Mar 2018
    Posts
    5
    thanks alot

Similar Threads

  1. Login.hist question
    By TonyTran in forum System-Level Technical Discussion
    Replies: 2
    Last Post: 05-19-2011, 01:39 AM
  2. Unable to read login history file
    By aED in forum System-Level Technical Discussion
    Replies: 2
    Last Post: 01-11-2010, 05:53 AM
  3. "Unable to read login history file"
    By knoxhosting in forum User-Level Difficulties
    Replies: 5
    Last Post: 11-03-2009, 08:04 AM
  4. login history file error
    By Alrik in forum Admin-Level Difficulties
    Replies: 4
    Last Post: 05-15-2007, 10:53 PM
  5. check login.hist
    By Lem0nHead in forum 3rd Party Software
    Replies: 0
    Last Post: 12-07-2005, 06:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •