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