查看当前用户所属的组 groups 查看<user1>, <user2> 和 <user3>所属的组 groups <user1> <user2> <user3> 更改用户的主用户组或附加组 usremod <user> -g <maingroup> -G<addgroup>