@@ -0,0 +1,13 @@
#!/bin/bash
# 创建 testgroup
groupadd testgroup
# 创建 testuser
useradd testuser
# 将用户加入组,即更改用户属性
usermod -aG testgroup testuser
# 验证
id testuser
The note is not visible to the blocked user.