feat: add user and group setup script

This commit is contained in:
Ubuntu
2026-10-05 15:04:31 +00:00
parent 2d19e39de0
commit 86151f46c0
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# 创建 testgroup
groupadd testgroup
# 创建 testuser
useradd testuser
# 将用户加入组,即更改用户属性
usermod -aG testgroup testuser
# 验证
id testuser