Linux 用户及组

# 查看当前登录用户
$ who am i


# 查看用户所在的组
# groups wangll
wangll : root


# 将用户A 添加到 组A 中
# -a 代表 append, 也就是 将自己添加到 用户组groupA 中,而不必离开 其他用户组。
usermod -a -G groupA userA

posted @ 2013-01-14 14:56  jeky  阅读(310)  评论(0编辑  收藏  举报
友情链接:逗死了笑话网 | 网络记事本