29 lines
377 B
Markdown
29 lines
377 B
Markdown
# 2026 国庆综合考核实践题
|
||
|
||
任务:
|
||
在 Linux 环境中创建 `testuser` 和 `testgroup`,
|
||
将 `testuser` 加入 `testgroup`,
|
||
最后使用 `id testuser` 验证。
|
||
|
||
## 运行
|
||
|
||
执行:
|
||
|
||
```bash
|
||
sudo bash setup.sh
|
||
```
|
||
|
||
## 验证
|
||
|
||
执行:
|
||
|
||
```bash
|
||
id testuser
|
||
```
|
||
|
||
输出:
|
||
|
||
```text
|
||
uid=1001(testuser) gid=1002(testuser) groups=1002(testuser),1001(testgroup)
|
||
```
|