Is it possible to see the login history, i mean to see if someone has used the computer in my absence and when he used it .
if it is possible, where can i get the log ?
if not, is there a program that logs all the logins and their time ?
Is it possible to see the login history, i mean to see if someone has used the computer in my absence and when he used it .
if it is possible, where can i get the log ?
if not, is there a program that logs all the logins and their time ?
That contains a lot more than just plain logins (sudo calls, etc) but logins are in there too. It's protected so you'll need to be root to read it:
As Suhail mentioned in a comment, the
last
command will show a listing of last logged in users.To view the most recent login for all accounts on the system, try
lastlog
. There's a few useful options, such as viewing only a specific user.Well appending your question and oli's answer if you are on laptop then you can also check it through grepping the exact content like
or
and whether he/she perform any kind of activity through sudo permission by
or
It will give you extra information what you want to know about user's logged in your system without your permission :):)
To see the last boot or login of your system and users, you can use the command
who
with plenty of options.