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

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
posted @ 2020-05-22 13:34  po-A  阅读(2382)  评论(0编辑  收藏  举报

Tushare大数据开放社区-免费提供各类金融数据和区块链数据 , 助力智能投资与创新型投资。

Python, Matlab, R, Web数据抽取学习交流。