首页 > 系统服务 > 详细

Linux CentOS 8 添加用户到组中 Add User to Group

时间:2020-05-22 14:10:51      阅读:135      评论:0      收藏:0      [点我收藏+]

lizzy是我们新建的用户

添加lizzy到work中:

Now to add the user lizzy to the work group with the following command:

$ sudo usermod -aG work lizzy
 
 
查看所有用户组:

cat etc/group

grep出hadoop用户组:

cat etc/group |grep hadoop

hadoop:x:1000:hadoop

 

添加用户:

add another user ash.

sudo useradd -m ash

Also set password for ash.

sudo passwd ash

Linux CentOS 8 添加用户到组中 Add User to Group

原文:https://www.cnblogs.com/watermarks/p/12936665.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!