linux下创建用户并为用户设置密码

[root@localhost ~]# useradd david

[root@localhost ~]# passwd david

Changing password for user test.

New password: 123

Retype new password:123

passwd: all authentication tokens updated successfully.