From bbdd235252945ce84c8b7ce8a65a61597c785e70 Mon Sep 17 00:00:00 2001 From: Engawa7630 <779891014@qq.com> Date: Tue, 6 Oct 2026 22:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=AE=9E=E8=B7=B5=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testuser.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 testuser.sh diff --git a/testuser.sh b/testuser.sh new file mode 100755 index 0000000..8b73892 --- /dev/null +++ b/testuser.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "创建用户组testgroup" +groupadd testgroup + +echo "创建用户testuser" +useradd -m testuser + +echo "将testuser加入testgroup组" +usermod -aG testgroup testuser + +echo "验证结果" +id testuser