Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

40.8. Summary

Login accounting records the users currently logged in, as well as all past logins. This information is maintained in three files: the utmp file, which maintains a record of all currently logged-in users; the wtmp file, which is an audit trail of all logins and logouts; and the lastlog file, which records the time of last login for each user. Various commands, such as who and last, use the information in these files.

The C library provides functions to retrieve and update the information in the login accounting files. Applications providing login services should use these functions to update the login accounting files, so that commands depending on this information operate correctly.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial