The default username of centos is root, and the default password is 12345 or centos. If you forget it, you can crack it by entering single-user mode.
The operating environment of this article: CentOS 7 system, Dell G3 computer.
What is the default username and password of centos?
CentOS initial login account and password:
The default user name is: root
The default password is: 12345 or centos
If you forget, you can enter the single-user crack
Cracking method
1.Linux boot boot At this time, press e on the keyboard to enter the GRUB menu interface.
2. When the GRUB boot screen appears (CentOS (2.6.18-274**)), press the letter e key to enter the GRUB editing state.
3. Move the cursor to the kernel... line, then type "e" to enter command line editing.
Add a space s at the end of the kernel line and press Enter
Type "b" to start the system, which will enter single-user mode.
4. At this time, you can use the passwd command to change the password.
passwd root
Reboot after completing the change.
Recommended tutorial: "centos tutorial"
The above is the detailed content of What is the default username and password of centos?. For more information, please follow other related articles on the PHP Chinese website!