Skip to content

Commit df1bfa5

Browse files
Update Users and Accounts.md
1 parent 5db042a commit df1bfa5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

DFIR/Digital Forensics/Linux/Users and Accounts.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,17 @@ username pts/0 Mon Apr 18 09:20 still logged in
6464
username tty1 Mon Apr 18 09:10 still logged in
6565
```
6666

67+
## Authentication logs (/var/log/auth.log)
68+
The `/var/log/auth.log`contains records related to authentication events on the system, such as login attempts, authentication failures, and other security-related activities. Here are some typical entries within this file:
69+
```bash
70+
Apr 19 10:25:34 hostname sshd[1234]: Accepted publickey for user from 192.168.1.100 port 12345 ssh2
71+
Apr 19 10:30:12 hostname sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
72+
Apr 19 10:35:21 hostname sshd[5678]: Failed password for invalid user admin from 203.0.113.10 port 54321 ssh2
73+
```
74+
**In this example:**
75+
- The first line indicates a successful SSH login using public key authentication.
76+
- The second line shows the opening of a sudo session for the root user.
77+
- The third line records a failed SSH login attempt with a password for a non-existent user (admin).
78+
79+
6780

0 commit comments

Comments
 (0)