> 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/adm-group-linux-privilege-escalation.md).

# adm 组日志访问 - Linux 权限提升

## 这是什么

危险的本地组成员关系即使不需要内核漏洞利用，也可能暴露特权资源。docker、lxd、adm 或 proxy 等组可能赋予主机控制权、敏感日志访问权限，或提供对横向移动和提权有用的配置路径。本页具体聚焦于 **用户组（adm）** 并保持利用流程切合实际：识别条件，安全验证，然后运行证明影响所需的最小载荷。

## 枚举

在运行利用路径之前，先确认本地上下文和具体的错误配置。

```bash
id
groups
```

## 示例

> adm 组通常有权限访问 /var/log 目录中的系统日志以及与系统管理相关的其他资源。

使用 **find** 我们搜索所有服务器日志：

```bash
find /var/log -group adm 2>/dev/null
```

<figure><img src="/files/c7cf707be1d99bd81b613c493c85c7dce71ebdf3" alt=""><figcaption></figcaption></figure>

我们发现可以访问日志，例如来自 **apache2**:

<figure><img src="/files/9f843dadd14627fb31612935ac5a879f2f70c918" alt=""><figcaption></figcaption></figure>

这些文件通常包含 **敏感信息**:

<figure><img src="/files/64609ae16ab105ad9e3d11f3b93219bc31f250f1" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/privesc/user-groups/adm-group-linux-privilege-escalation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
