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

alexelixir

Verified User
Joined
Jun 9, 2011
Messages
38
Location
Russia
in my vps only last 6-7 days login history save in login.hist file
how can i increase this limit
 
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
 
1. That usually happens due to missing a final line-break in directadmin.conf

Control it with:

Code:
/usr/local/directadmin/directadmin c | grep ^[COLOR=#333333]login_history=[/COLOR]


if you see

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

you need to add line-break after
Code:
[COLOR=#333333]login_history=1000[/COLOR]
and restart directadmin.


2. It won't show logins from earlier times... it will collect new data and show new logins after they occur.
 
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
 
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.
 
Back
Top