使用root用户为创建新用户并设置密码

Posted 健康平安的活着

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用root用户为创建新用户并设置密码相关的知识,希望对你有一定的参考价值。

一 设置用户名和密码

1.新增用户

[root@localhost bin]# useradd boc

2.设置密码

[root@localhost bin]# passwd boc
Changing password for user boc.
New password: 
BAD PASSWORD: The password contains the user name in some form
Retype new password: 
passwd: all authentication tokens updated successfully.
 

以上是关于使用root用户为创建新用户并设置密码的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu创建新用户并增加管理员权限

Linux 添加新用户账号并赋予root权限

怎样为局域网用户分配共享权限并设置访问密码

添加 Root 密码并在启动时在 MongoDB Docker 容器上创建应用程序用户

centos 7中添加一个新用户并授权的步骤详解

centos创建子用户