Bird
0
0

What is the purpose of the /var/log/auth.log file on a Linux system?

easy📝 Conceptual Q2 of 15
Linux CLI - System Administration
What is the purpose of the /var/log/auth.log file on a Linux system?
ARecords user command history
BStores authentication and authorization messages
CContains system boot messages
DLogs kernel messages
Step-by-Step Solution
Solution:
  1. Step 1: Understand auth.log content

    The /var/log/auth.log file records authentication and authorization events like login attempts.
  2. Step 2: Differentiate from other logs

    Kernel messages go to kern.log, boot messages to boot.log, and user command history is stored in shell history files, not in /var/log.
  3. Final Answer:

    Stores authentication and authorization messages -> Option B
  4. Quick Check:

    auth.log = authentication messages [OK]
Quick Trick: auth.log tracks login and security events [OK]
Common Mistakes:
  • Mixing auth.log with kernel or boot logs
  • Thinking auth.log stores user commands
  • Assuming auth.log is empty if no errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes