Raspberry Pi (Linux-based system) unlock root permissions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.