CentOS Learning Handbook--Forced password reset

Source: Internet
Author: User
Tags centos server

---restore content starts---

CentOS Learning Manual by Ruffianfish; Ruffian Fish

Recently idle boring, and recently in the CentOS decided to write a detailed study manual centos, so that they do not touch CentOS for a long time can see again. and very suitable for beginners to learn, because the following important information are translated in Chinese.

Note: Fish represents the meaning of the example

A CentOS server password forgot what to do!

The way CentOS and Red Hat Linux I contacted previously was a urine-like one, forcing the root password to be reset.

Fish:

1. Start the CentOS

Figure 1.1.1

Interface meaning:

Press any key to enter the menu: Pressing any key to enter the menus

Booting CentOS in 3 seconds ...: 3 seconds to start (boot) CentOS

2. Press and hold any key to enter the following screen

Figure 1.2.1

Interface meaning:

' E ' edit the commands before booting editing commands before booting

' A ' modify the kernel arguments before booting: Modify kernel parameters before booting

' C ' for a command-line: go to the command line

Here, press E to enter the edit command.

3. Press ' E ' to enter the following

Figure 1.3.1

GNU GRUB vession 0.97

This is a GNU Project multi-operating system launcher, version number 0.97 here does not introduce

Root (hd0,0)

(hd0,0) is the first primary partition on the first external memory (limited to a device that is recognized as HD).

Second line

Refers to the kernel file, where we are going to enter the kernel file

Third line

Refers to the image file, a Linux system boot sequence is generally, the first kernel post-image.

Below we select the second line, press and hold the ' E ' key as follows:

4. Press ' E ' to enter the following

Figure 1.4.1

Here we press a space key after the quit to enter ' single ', boot the one-user Linux mode, then enter the interface again:

Figure 1.4.2

Still select the second item, press ' B ' key to start the system

5. System boot into an all-English interface, as follows

Figure 1.5.1

We enter: passwd root: Reset password using root

Figure 1.5.2

I this hint password is too simple, can not ignore, re-enter the password

Figure 1.5.3

Here: All authentication token updates are successful, the password update succeeds, and then we enter: Reboot reboot the system.

After the system restarts, enter the user of the pipe: root, Password: * * *, you can enter the system.

Figure 1.5.4

Here is a graphical form of the interface, I am a like to pretend to force the person, do not install force how to do it, we can easily change to the command line interface.

First step: Right-click to open Terminal.

Step two: CD/go to the root directory

Step three: CD etc into the System configuration folder

Fourth: VI Inittab is the VI editor, modify the boot level

As follows:

Figure 1.5.5

Figure 1.5.6

0 Turn off the machine

1 Single-User mode

2 Multi-user mode without network

3 multi-user with network, so-called pure character mode

4 reserved, user can define self-sufficiency

5 graphical interface for multi-user mode

6 Re-start system

Id:5:initdefault: Change to Id:3:initdefault:

: Wq Save

Here vi Editor how to use the first good introduction, the next chapter to do the introduction.

: Reboot restart

Figure 1.5.7

The system starts to enter the user name password, you can see to install the force of the interface.

First line: Version number

Second line: Kernel

End of Chapter I.

By won't knock code programmer Ruffian Fish

---restore content ends---

CentOS Learning Handbook--Forced password reset

Related Article

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.