Article directory
overview
This document mainly describes the first-time user settings Ubuntu
after the system is installed and logged in as a common user . root
Including switching to root
user, setting root
user password, etc.
system version
Ubuntu 20.04
switch to root user
1. Using sudo su
commands
sudo su
At this point, the system prompts you to enter the password of the current user, and you can switch to root
the user after entering it.
2. Set root
user password
sudo passwd root
At this time, enter the user password that needs to be set root
, and then enter it again to confirm.
3. Switch to root
user
su root
At this time, enter root
the user password to switch to root
the user.