Listing recent logins
Every time a user logs into your system or logs out, information about this is stored in a log of interactive login sessions. You can use Webmin to inspect this log.
How to do it...
Follow these steps to list recent logins:
Navigate to System | Users and Groups.
Use the form at the bottom of the screen. Select the radio button marked Only user, and enter the username of the user whose logins you're interested in. You can also select All to list logins by all users.
Click the button marked Displays Logins By.
You will see a list of logins by the selected user since the logfile was last rotated.
How it works...
Webmin inspects the standard Unix file named wtmp
, usually stored in /var/log/wtmp
, which stores the history of all logins and logouts on the system. This is a binary file, so you can't inspect it using standard text log parsing tools. If you wanted to view login history at the command line, you would use the last
command, for example, last root
to show logins of the root...