Skip to content

Commit 3d51747

Browse files
Update Users and Accounts.md
1 parent 157a475 commit 3d51747

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# User Accounts (etc/passwd)
1+
# User Accounts (/etc/passwd)
22
The /etc/passwd file is a fundamental system file in Unix-like operating systems, including Linux. It stores essential information about user accounts on the system. Each line in the file represents a user account and is formatted with several fields separated by colons (:). Here's a typical structure of a line in /etc/passwd:
33

44
```bash
@@ -13,3 +13,15 @@ username:password:UID:GID:GECOS:home_directory:login_shell
1313
| GECOS | General Electric Comprehensive Operating System (GECOS) field, traditionally used to store additional information about the user, such as the user's full name and other details. |
1414
| home_directory | The user's home directory, where they are placed upon login. |
1515
| login_shell | The default shell for the user, which determines the command interpreter environment when the user logs in. |
16+
17+
# Groups
18+
The `/etc/group` stores information about groups on the system, including group names and their associated group IDs (GIDs), as well as the list of users who belong to each group. Similar to /etc/passwd, each line in /etc/group represents a group and is formatted with several fields separated by colons (:). Here's the typical structure of a line in /etc/group:
19+
```bash
20+
group_name:password:GID:user_list
21+
```
22+
| Field | Description |
23+
|--------------|------------------------------------------------------------------------------------------------------------------|
24+
| group_name | The name of the group. |
25+
| password | Historically, this field used to store the encrypted group password. However, it's rarely used nowadays, and an 'x' character is typically placed here to indicate that the actual password is stored in the /etc/gshadow file. |
26+
| GID | The numerical Group ID, a unique identifier for the group. |
27+
| user_list | A comma-separated list of usernames that are members of the group. |

0 commit comments

Comments
 (0)