ubuntu初次安装后设置root用户密码

在ubuntu系统下,为了安全起见,在安装过程中,系统屏蔽了用户设置root用户。

设置方法如下:

登录普通用户

打开终端

sudo passwd
[sudo] password for [username]:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

设置完成

原文地址:https://www.cnblogs.com/sayaoailun/p/4375882.html