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. in the grub option menu, press E to enter the editing mode. 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 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.