Modify the default root password of the Ubuntu operating system

This article is reproduced from: [Baidu experience: modify the default password of root in Ubuntu operating system] (http://jingyan.baidu.com/article/5225f26b0ac250e6fb09084e.html)

One, Ubuntu
The default root password is random, that is, there is a new root password every time you boot. We can enter the command sudo passwd in the terminal, and then enter the password of the current user,
enter,

  1. The terminal will prompt us to enter and confirm a new password. The password at this time is the new root password. After the modification is successful, enter the command su root and then enter the new password.

  1. There is no default analysis, because you have not yet set a password for root. The first user is in the admin group, so he can set a password for root, so
    sudo passwd root
    [ sudo] password for you :---> Enter your password, it will not be displayed

Enter new UNIX password:

Execute in Shell after logging in with the user created during installation
sudo passwd root Enter Password:

Then enter the user password just created and press Enter
Enter new UNIX password:

At this time, enter the root password to be set twice and you will see

password updated successfully!

Recommended Posts

Modify the default root password of the Ubuntu operating system
ubuntu root default password (initial password)
Overview of the Ubuntu file system
How to extend the root directory of LVM under Ubuntu system
Wsl sets the default account to root (ubuntu18.04)
Modify the default encoding of mysql5.6 under CentOS7
The process of solving the problem of installing ImageMagick under Ubuntu system
The operating mode of the open source community: Debian Vs. Ubuntu
Common exceptions and solutions in the use and development of Ubuntu system
Detailed steps to install MySQL to change the default password in Ubuntu
001. Installation of enterprise-level CentOS7.6 operating system
How to fix the problem of missing system settings on Ubuntu 14.04
Modify the software default source to Tencent source
Remove root password verification strategy under ubuntu
The apt-get command of Ubuntu basic tutorial
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Ubuntu modified the default sh to bash
Obtain Root permission when remote Ubuntu system
How to modify the hostname on Ubuntu 20.04
Summarize the knowledge points of Centos7 system reinforcement
Solve the problem of installing VMwareTools on Ubuntu 18.04
ubuntu adjusts the priority of swap swap space usage
Python realizes the development of student management system
Summary of Ubuntu system and privacy cleaning tools
Install the CPU version of Caffe on Ubuntu
The basic configuration and interface beautification of Ubuntu
Enable root user remote login on ubuntu system
Install the old version of seurat under Ubuntu
Talking about the first experience of using Ubuntu
How to open the ubuntu system in win10
Note record | Ubuntu16.04 set default root user login
First look at the new features of Ubuntu 17.10
The road to reinstallation of ubuntu 18.04 from scratch
How to quickly modify root password under CentOS8
The use of crontab for ubuntu scheduled tasks
The consequences of uninstalling python in ubuntu, very
Introduction to the use of Hanlp in ubuntu
How to change root user password on Ubuntu
Cancel the background color of the Ubuntu (wsl) folder
The latest method of installing Mongodb on Ubuntu 16.04
Tencent Cloud ubuntu system changed to root login
Solve the problem of installing Theano on Ubuntu19
Centos7 modify the system language to simplified Chinese