How to read login from a Remote Server

In case you have a remote server which booted in rescue mode and you need to obtain the login history of the original server you just can use the last command after mounting the disc which is carrying the OS from the original server.

last -f changes the default location of the last log to another directory

last -f /mnt/sda1_server/var/log/wtmp

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>