Linux 用户及组
# 查看当前登录用户
$ who am i
# 查看用户所在的组
# groups wangll
wangll : root
# 将用户A 添加到 组A 中
# -a 代表 append, 也就是 将自己添加到 用户组groupA 中,而不必离开 其他用户组。
usermod -a -G groupA userA
# 查看当前登录用户
$ who am i
# 查看用户所在的组
# groups wangll
wangll : root
# 将用户A 添加到 组A 中
# -a 代表 append, 也就是 将自己添加到 用户组groupA 中,而不必离开 其他用户组。
usermod -a -G groupA userA