# 用户管理

查看当前登录的用户信息：

```
id
uid=0(root) gid=0(root) groups=0(root)
```

系统约定： RHEL6 uid: 0 特权用户 uid: 1\~499 系统用户 uid: 500+ 普通用户

## 给普通用户提权

1.su

```
su -
```

2.添加用户至sudoers

```
vim /etc/sudoers
%wheel  ALL=(ALL)       NOPASSWD: ALL
useradd aa -G wheel
```

```
usermod aa -G wheel
```


---

# Agent Instructions: 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:

```
GET https://wiki.clay-wangzhi.com/linux/yong-hu-guan-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
