linux将一个用户添加到某一用户组中

查看用户组:

cat /etc/group

添加:
useradd  user1   #添加新用户
usermod -a -G groupA user1  #添加用户user 1到groupA组。

发表评论

您的邮箱地址不会被公开。