Hint: Look for LOGIN FAILURE to spot failed login attempts [OK]
Common Mistakes:
Mixing user1 and user2 events
Confusing LOGIN SUCCESS with FAILURE
Ignoring timestamps
4. You configured auditd to log file access but notice no logs are generated. Which is the most likely cause?
medium
A. auditd service is not running
B. The log file is too large
C. The system clock is incorrect
D. The user has admin rights
Solution
Step 1: Check auditd service status
If auditd is not running, no audit logs will be created.
Step 2: Rule out other options
Log file size or system clock issues do not stop logging; admin rights do not prevent logs.
Final Answer:
auditd service is not running -> Option A
Quick Check:
auditd must run to log events [OK]
Hint: Ensure auditd service is active to generate logs [OK]
Common Mistakes:
Assuming large log files stop logging
Blaming system clock for missing logs
Thinking admin rights block logging
5. You want to create an audit trail that records user login and logout times, but only for users in the 'admin' group. Which approach best achieves this?
hard
A. Manually check login times daily for admin users
B. Enable system-wide logging for all users without filters
C. Configure audit rules to watch /var/log/auth.log and filter by admin group users
D. Disable logging for non-admin users
Solution
Step 1: Understand audit trail requirements
We need logs for login/logout only for admin group users.
Step 2: Choose filtering method
Configuring audit rules to watch auth logs and filter by group targets only admin users.
Step 3: Evaluate other options
System-wide logging is too broad; manual checks are inefficient; disabling logging for others may miss events.
Final Answer:
Configure audit rules to watch /var/log/auth.log and filter by admin group users -> Option C
Quick Check:
Audit rules + filtering = targeted logs [OK]
Hint: Use audit rules with filters to log specific user groups [OK]