You are not logged in.
Running the "last" command from shell this does not return me the user logins updated, but only some time ago, almost a month old. What do I need to do to update that report? or is there an alternative command to find out which users are last logged in.
Thanks
Last edited by m3nhir (2023-11-29 21:52:46)
Intelligence is not making mistakes, but find out how to profit immediately.
Offline
Check whether it's only truncated due to your terminal's scrollback limit:
last | head -n 10
EDIT:
or
last | less
for that matter...
Last edited by dogknowsnx (2023-11-29 18:38:55)
Offline
Can we see
stat /var/log/wtmp
As for alternatives, see this horribly hacky script example: https://forum.openwrt.org/t/last-comman … ve/98548/4
Don't know of any other equivalent commands though.
Para todos todo, para nosotros nada
Offline
Thanks for your help, to check the latest accesses I used:
last -F -n 10
I tried running it as root, indicating the user and it worked fine.
After I ran it as a normal user it gave me the correct data. I didn't understand the anomaly at first but I solved it.
Intelligence is not making mistakes, but find out how to profit immediately.
Offline