Local root password cracking methods for Linux versions

Source: Internet
Author: User
During this time, I was often asked about the local root password cracking methods for various Linux versions. I have collected some information here and on the Internet, I hope it will be helpful to the technicians who have seen this article and just used it:

(1) RedHat/centos/Fedora system password cracking

1. Press e in the grub option menu to enter the editing mode.
2. Add S (or single) to the last line of the kernel editing)
3. Press B to start to single-user mode.
4. Run the following command
# Mount-T proc/proc
# Mount-O remount, RW/
# Passwd
# Sync
# Reboot

(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-
Root @ (none) # passwd Root
Root @ (none) # reboot

(3) FreeBSD system password cracking

1. boot to enter the boot menu
2. Select each item (Press 4) to enter the single-user mode.
3. Enter a command column.
Root @ # Mount-
Root @ # fsck-y
Root @ # 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 item in the grub option menu
2. The system prompts do you wish to have it mounted read-write on/? [Y, N,?] Select y
3. Enter the single-user mode.
4. Enter the following command: passwd
Root @ # init 6 (restart)

(5) NetBSD system password cracking

1. Boot: When a prompt symbol appears and the last five seconds start, type the following command:
> Boot-s (command for entering single-user mode)
2. In the following prompt symbols
Enter pathname of shell or return for sh:
Press enter.
3. type the following command:
# Mount-
# Fsck-y
4. 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.

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.