Local root password cracking methods for linux/unix 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.