Raspberry Pi Raspberry Pi enable root login account

Source: Internet
Author: User

Raspberry Pi Raspberry Pi enable root login account

The Raspberry Pi system uses Linux as a Debian system, so Raspberry Pi enabled root and Debian are the same.

The root account in Debian does not have a default password, but the account is locked.

When root privileges are required, the default account is executed via sudo, and the Raspbian in the Raspberry pi system

The default hostname is Raspberrypi the default user is the PI password is raspberry

For the convenience of tossing and turning, it is recommended to enable the ROOT account at the first time ~ This is also very simple, only need to execute a two-sentence command:

Re-open the root account, can be logged by the Pi user, after executing this command, the system will be prompted to enter the root password two times, enter the password you want to set.

[Email protected]:~$ sudo passwd rootenter new UNIX password: #输入第一遍密码Retype new UNIX Password: #输入第二遍密码

Enable root Account Login

[Email protected]:~$ sudo passwd--unlock rootpasswd:password expiry information changed.

Enter the first line of code above the second line is the code that prompts the error

The reason is that the new version of SSH default shutdown root Login You can modify the SSH configuration file

[Email protected]:~$ sudo nano/etc/ssh/sshd_config

Ctrl + W shortcut Search permitrootlogin Without-password

Modify permitrootlogin Without-password to permitrootlogin Yes

Ctrl + O shortcut keys Save

Ctrl + O Shortcut exits the Nano editor

After execution, restart with the Reboot command so you can unlock the root account.

If you have any questions, please click on the link below to enter the community discussion

Http://bbs.shumeipaiba.com/thread-1-1-1.html


Raspberry Pi Raspberry Pi enable root login account

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.