Which of the following log files contains a list of failed login attempts?
  1. /var/log/last
  2. /var/log/wtmp
  3. /var/log/login
  4. /var/log/faillog
Explanation
Answer - D - The /var/log/faillog file contains a list of login attempts.

Key Takeaway: The faillog command formats the contents of the failure log /var/log/faillog and maintains failure counts and limits. faillog only prints out users with no successful login since the last failure. To print out a user who has had a successful login since their last failure, the user must be explicitly mentioned with the -u flag, or print out all users with the -a flag.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz