Home>Article>Operation and Maintenance> What is the default username and password of centos?

What is the default username and password of centos?

藏色散人
藏色散人 Original
2022-01-07 15:57:16 33278browse

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.

What is the default username and password of centos?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn