创建用户tammy,其用户ID为2020,此用户的密码应当是redhat。
创建用户:
[root@localhost ~]# useradd -u 2020 tammy
创建密码:
[root@localhost ~]# echo "redhat" |passwd --stdin tammy
Changing password for user tammy.
passwd: all authentication tokens updated successfully.
检验用户:
[root@localhost ~]# id tammy
uid=2020(tammy) gid=2020(tammy) groups=2020(tammy)
Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved