Book Image

Webmin Administrator's Cookbook

By : Michal Karzynski
Book Image

Webmin Administrator's Cookbook

By: Michal Karzynski

Overview of this book

Table of Contents (19 chapters)
Webmin Administrator's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Navigate to System | Users and Groups.

  2. 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.

  3. 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...