Now your hand may already have a properly configured Raspberry Pi but sometimes it's awkward and frustrating, like modifying the name of a file in a directory, moving a file to another directory, deleting a file, etc. (if you say you haven't met That's because the files you are working on are created by your current account, and the system will prompt you to unlock the root account by not allowing the solution.
The distribution of each Linux system is disabled by default (for system security reasons) so why Root is a "small" account that can threaten system security. Let's start with what is root.
One of the best places in Linux is its multi-user multitasking environment
This means that the same system can be used by multiple users to use the Raspberry Pi system default
The initial account pi is what we call a normal user. A Linux system allows
Multiple general accounts similar to PI exist and a special account allows only one
That's the "Tenjin" account "root" that can be "unblocked"
The root account can be said to be omnipotent in the system, so the system initial default is disabled
This account prevents the operator from failing the accident.
So how do I unlock the root account?
The first step is to open the Raspberry Pi command line interface with the normal account PI login after input
sudo passwd root
You will be prompted to set a password for your root account
Then enter sudo passwd--unlock root shortly thereafter
This unlocks root, and now you can log in as root.
Input command Su-
Switch to root and prompt for a password Enter the password you just set to log in to
Root Account
The basic problem has been solved here, but careful people will find that the problem is just
If you log in with the PI account, you can set the password for the root account. Damn it!
It's a security risk. We have a way of using root to deprive ordinary accounts of this ultra vires ability
For details, please see the blogger's other essays!
Raspberry Pi (Linux-based system) unlock root permissions