From 8506ffa249f5574362bf241705cb0ec1b9c27e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A0=83=E8=90=A5?= <1572506709@qq.com> Date: Wed, 7 Oct 2026 21:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=AF=B4=E6=98=8E=E5=92=8C?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..565750f --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# 实践题 M-P-01 + +这道题是在 Linux 里创建用户 testuser 和组 testgroup,把用户加进组,再用 id 验证。 + +脚本是 setup_user.sh,运行后 id testuser 的输出是: + +``` +uid=1001(testuser) gid=1002(testuser) groups=1002(testuser),1001(testgroup) +``` + +可以看到 groups 里有 testgroup,说明加入成功。