GCIH · Question #696
Which file contains information about failed login attempts on a Unix system?
The correct answer is C. btmp. On Unix/Linux systems, the btmp file records failed login attempts, distinguishing it from other log files that track successful logins or current sessions.
Question
Which file contains information about failed login attempts on a Unix system?
Options
- Actmp
- Bwtmp
- Cbtmp
- Dutmp
How the community answered
(14 responses)- A7% (1)
- C93% (13)
Why each option
On Unix/Linux systems, the btmp file records failed login attempts, distinguishing it from other log files that track successful logins or current sessions.
ctmp is not a standard Unix login-tracking file and does not exist in the standard utmp family of files.
wtmp records successful logins, logouts, and system reboots, not failed login attempts.
The /var/log/btmp file (or /var/adm/btmp on some systems) specifically records failed login attempts - so-called bad logins. It is a binary file readable with the 'lastb' command, which parses btmp to display a history of failed authentication events, making it the primary artifact for investigating brute-force or unauthorized login activity.
utmp tracks users who are currently logged in to the system in real time, not a history of failed authentication attempts.
Concept tested: Unix login log files and failed authentication tracking
Source: https://man7.org/linux/man-pages/man5/utmp.5.html
Topics
Community Discussion
No community discussion yet for this question.