#!/bin/bash #创建testgroup组 sudo groupadd testgroup #创建testuser用户并加入testgroup sudo useradd -m -g testgroup testuser # 验证:查看testuser的id信息 id testuser