Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of centos cracking password and running level

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you centos crack password and run level example analysis, I believe most people still do not know how, so share this article for your reference, I hope you have a lot of harvest after reading this article, let us go to understand it together!

1. I don't teach you anything. I teach you to read the system version first (I vaguely remember how I saw the version for the first time for customers. I won't tell you how bad it is)

#cat /etc/issue

You can also use more #more/etc/issue

2. As far as you want to see your system 32/64 you can use the following command

#uname-a/-i/-r These are all OK, personally like

#uname-r Simple and refreshing (as mentioned earlier, it is a review)

3. Well know the version of the system, some people love new do not love old like to upgrade the system. Keep it fresh (not a good habit) especially when managing your own servers. Have seen cheap hand upgrade server system to their own domain bad. no zuo no die

said too much

Want to upgrade here?

# yum update

And then a long wait (depending on your internet speed)

yum source Look at that Chinese character source, you know something, equivalent to warehouse.

Introducing two yum commands

# yum list

See and list all installed and non-installed packages I don't know what you think but I thought man ls list = ls so see why!

#yum grouplist

List all installed and uninstalled packages

Common yum grouplist| "Development"-i anyway very good with the limited to find what they want!!! I'm pretending to be Chinese. So the limit is Chinese characters.

4. Know how to use yum to see uninstalled vs. installed packages, installed vs. uninstalled packages. Do not install a desktop to install a desktop try it! (Order as follows)

#yum groupinstall "Desktop" -y

#yum groupinstall "X Window" -y

After installation init 5 or startx starts the desktop

5. I said a lot......................................................................................................................................................................................................................................................

There are always customers who ask for help to reset their passwords for various reasons! Our backstage system. When I see these words, I go crazy! (I work at IDC) Especially Windows Server. Because I hate finding drivers under PE plus Raid drivers!!

Of course Centos I still prefer single user to get what you want!! How to get into single user!

Look at me (A-------E)

A. Shut down the system and wait for it to restart. When it appears 5 times, press any key to edit it (see picture).

B. You can get to places like this (see here!!)

Here is the GRUB menu interface (where you can see some information about your system, linux version; kernel information)

In fact, people who come here for the first time will be a little uncomfortable. What should they do next? Below the frame, there was a bunch of English, and I read it myself.

Select up and down the page key to select the OS you want to start, press e to enter the edit a/c I do not discuss too much on the confusion!!

C. Firmly press an "e" on the keyboard to enter the interface below (you and I are the same)

D. The old bird in the computer room said: "Select the longest one and press e to add a 1 at the end, b key to restart." After entering the following figure: Move the cursor to the kernel configuration item line, that is, the longest line!!! Press e again to edit (as shown below)

followed by a space plus a 1 or a single.

(Ask me what plus 1 means to mention the seven operating levels of Linux) 1 means single user mode

Enter Save after adding 1

B button to restart!!!!! I'm not going to show you how to get into single-user images.

E. The password you want to change (root) password is passwd directly. The password you want to change is passwd + username.

When it's done, you can reboot.

Reboot can also be done with init 6.

OK (A-----E) means you can try the whole process.

Here are the seven Linux runtimes (0--6)

0 stands for shutdown (init 0) shutdown

1 I already said single user mode

And 2345. Let me tell you one by one.

2 is level 3 without network NFS services

3 is the default command line mode for your system

4 This custom

5 This is the GUI mode with X window or GUI (i.e. the mode above where I installed the graphics suite with yum groupinstall-y)

6 is restart server (init 6)

All right, expand on the Linux runlevel command.

#runlevel

The above is "centos crack password and run level example analysis" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report