How to enter the single-person maintenance mode in linux

Source: Internet
Author: User

In linux, how does one enter the single-person maintenance mode and reboot the system first? When you press any key in the second, the operating system selection screen will appear. Read the instructions below the menu carefully, press "e" to enter the grub editing mode. At this time you see the picture a bit like below: root (hd0, 0) kernel/vmlinuz-2.6.18-128.el5 ro root = LABEL =/rhgb quietinitrd/initrd-2.6.18-128.el5.img at this time, please move the cursor to the line of the kernel, press "e" again to enter the edit image of the kernel line. Then, in the displayed image, enter "single ": kernel/vmlinuz-2.6.18-128.el5 ro root = LABEL =/rhgb quiet single then press "Enter" to confirm, press B to boot into the single maintenance mode! In this mode, you do not need to enter a password in tty1 to obtain control of the terminal (and use the root identity !). The local root password cracking methods for various Linux versions during this time, some people often asked about the local root password cracking methods for various linux versions. I have collected some information on the network and myself, I hope the technicians who have seen this article and just used it will be helpful: (1) RedHat/CentOS/Fedora system password cracking 1. press E in the grub option menu to enter the editing mode. 2. edit the line of the kernel with S (or Single) 3. press B and start to single-user mode4. then run the following command # mount-t proc/proc # mount-o remount, rw/# passwd # sync # reboot [1] boot screen press e to enter [2] to enter the following screen, select the following options, and then press the e button again; 1 S Single can be [3] Return to the current page, press the B button to start linux; [4] use the passwd command to change the root user password; [5] Use shutdow Run the n-r now command to restart linux. The password has been changed. (2) Debian linux system password cracking 1. in the grub option menu 'debian GNU/Linux ,... (recovery mode) ', press e to enter the editing mode 2. edit the ro single at the end of the kernel line and change it to rw single init =/bin/bash. Press B to restart. 3. run the following command: root @ (none) # mount-aroot @ (none) # passwd rootroot @ (none) # reboot (3) Freebsd system password cracking 1. boot into the boot menu 2. select each item (Press 4) to enter the single-user mode. 3. enter the command root @ # mount-aroot @ # fsck-yroot @ # passwd (password change command) root @ # root (username to crack the password) enter new unix password: root @ # init 6 (restart) (4) Solaris system password cracking 1. Select the solaris failasfe option in the grub option dish. 2. The system prompts Do you wish to have it mounted read-write on/? [Y, n,?] Select y3. run the following command: passwdroot @ # init 6 (restart) (5) NetBsd system password cracking 1. boot: When a prompt symbol is displayed and the last five seconds are counted, type the following command:> boot-s (enter single-user mode command) 2. enter pathname of shell or RETURN for sh in the following hint: Press Enter. 3. type the following command: # mount-a # fsck-y4. use passwd to change the root password. 5. Use the exit command to enter the multiplayer mode. (6) SUSE system password cracking 1. restart the machine. After the grub boot interface appears, add init =/bin/bash to the linux Startup options, by passing the init =/bin/bash parameter to the kernel, the OS runs bash before running the login program, and the command line appears. 2. Wait for a moment (none) #: command line. 3. Enter mount-n/-o remount. rw indicates that the root file system is remounted to read/write. With the read/write permission, you can use the passwd command to change the password. 4. Enter the passwd command to reset the password. 5. After the modification, remember to use mount-n/-o remount. ro sets the root file system to the original state.

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.