您的位置:首页 > 运维架构 > Shell

rhel7 创建多个用户组和用户,设置候选组,默认shell

2015-10-11 17:01 651 查看
创建多个用户组和用户,设置候选组,默认shell
groupadd -g 40000 adminuser 指定gid
useradd natasha -G adminuser 指定附属组
[root@desktop0 /]# useradd harry -Gadminuser
[root@desktop0 /]# useradd sarah -s/bin/nologin
[root@desktop0 /]# echo"glegunge" | passwd --stdin natasha 指定密码
Changing password for user natasha.
passwd: all authentication tokens updatedsuccessfully.
[root@desktop0 /]# echo"glegunge" | passwd --stdin harry
Changing password for user harry.
passwd: all authentication tokens updatedsuccessfully.
[root@desktop0 /]# echo"glegunge" | passwd --stdin sarah
Changing password for user sarah.
passwd: all authentication tokens updatedsuccessfully.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  useradd rhel7