A way to monitor logins on a Linux box in real time?
by itsallgood from LinuxQuestions.org on (#4S64C)
All,
Like my title says, is there any way to monitor logins on a Linux box in real time?
I am just learning Linux and have a Linux server I've been tasked with taking care of.
Something we are trying to figure out is how to tell when user(s) log in in real time. I can run 'last' to see all of this information but there must surely be a way to monitor it in real time vs. running the 'last' command or 'who' then searching through the info, right? I was thinking something like tail -F but I can't seem to find much on Google with my limited skill with the OS.
I found a program called 'whowatch' but I'd prefer something I can do with native tools on a Red Hat 6 box as there may be more I will need to do this on in the future.
Many thanks for your suggestions.


Like my title says, is there any way to monitor logins on a Linux box in real time?
I am just learning Linux and have a Linux server I've been tasked with taking care of.
Something we are trying to figure out is how to tell when user(s) log in in real time. I can run 'last' to see all of this information but there must surely be a way to monitor it in real time vs. running the 'last' command or 'who' then searching through the info, right? I was thinking something like tail -F but I can't seem to find much on Google with my limited skill with the OS.
I found a program called 'whowatch' but I'd prefer something I can do with native tools on a Red Hat 6 box as there may be more I will need to do this on in the future.
Many thanks for your suggestions.