forget linux root password solution

2010-12-15  来源:本站原创  分类:OS  人气:67 

Intend to start learning today under linux (some time ago installed a red hat 9 virtual machine), I did not realize a start forget the root password, and very depressed.
(This only from the single-user mode by groub described.)
Step one: boot time press 'e' key. The menu 'Red Hat Linux (2.4.20-8)', then 'e' key to enter the secondary menu, there are three options:
root (hd0, 0)
kernel / vmlinuz-2.4.20-8 ro root = LABLE = / hdc = ide-scsi
initrd / initrd-2.4.20-8.img
Use the cursor keys to select the second line, press 'e' key, the hdc = ide-scsi deleted and replaced by single (note hdc in front of a space)
Then press Enter, press 'b', you can boot to single user mode, there 'sh-2.05b #' prompt.
Step two: Change the password in the prompt type: passwd root Enter new password prompt, enter 2 times, the system confirmation. Then enter reboot, restart the system can be landed with a new password.

相关文章
  • forget linux root password solution 2010-12-15

    Intend to start learning today under linux (some time ago installed a red hat 9 virtual machine), I did not realize a start forget the root password, and very depressed. (This only from the single-user mode by groub described.) Step one: boot time pr

  • Red_Hat_Linux forget the root password solution 2010-09-27

    Interface in the event of system options, the options in the Red Hat Linux, press "e" key, Then there are three options, "kernel/boot/vmlinuz-2.4.18-14 ro root = LABEL = /" press "e" key to edit, In the "ro" or &quo

  • forget linux root password of the third solution 2011-04-27

    The third reason is, because the use of relatively small, the first two are: single-user mode and CD-ROM guide way to restore the password. The third is the concrete operation is: 1, restart the machine, in the event after the grub boot screen, the o

  • turboLinux8 forget the root password solution 2010-03-07

    1. The turboLinux8 system CD into the drive, start the server, and set the boot drive. Note: Because turboLinux8 the boot disk problems, so use the red hat4 the boot disk. 2. When grud interface, enter linux rescue, and press Enter. 3. The following

  • forgot linux root password 2011-09-04

    May use a lot of friends at the beginning of the time back to forget linux root password, then how to get back to re-set the new root password? In just machines, do not enter the system before and edit the grub. The choice to enter the system, accord

  • RedHat Linux 9 forget the root password how to reset your password 2011-03-07

    RedHat Linux 9 forget the root password how to reset your password You can use single-user Linux mode to log in and create a new root password. To enter single-user mode, reboot the computer. If you are using the default boot loader, GRUB, you can pe

  • CentOS forget the root password 2011-04-29

    Forget the need to enter the root password into single user mode to change. Operation is simple: 1, after the grub boot screen, select the linux boot entry, then press the e key to edit the boot entry. 2, select the line beginning with kernel, press

  • linux root password forgotten how to do linux interface and the graphical interface to switch characters 2010-08-04

    Linux root password forgotten how to do? The machine to boot to grub for the operating system choice for Redhat linux: The cursor using the arrow keys on the linux system, press "e" The line in a kernel by "e", enter "space single

  • [Hosted services] Linux root password, and modify the way back the password 2011-05-19

    Log in as root, run: # Passwd user name (change password) # Useradd username (add users) Specific examples are as follows: [root @ bogon ~] # passwd root Changing password for user root. New UNIX password: BAD PASSWORD: it is based on a dictionary wo

  • [Hosting] Linux root password, and modify the way back password 2011-05-19

    Log in as root, run: # Passwd user name (change password) # Useradd username (add users) Specific examples are as follows: [root @ bogon ~] # passwd root Changing password for user root. New UNIX password: BAD PASSWORD: it is based on a dictionary wo

  • mysql root user accidentally deleted or forgotten the root password solution 2011-04-02

    mysql root user accidentally deleted or forgotten the root password solution As follows: 1. Mysqld process before the end of # Killall mysqld 2 does not load grant_tables entering mysq l # Mysqld_safe - skip-grant-tables & 3 into mysql # / Usr / bin

  • Forget MySQL Root Password 2011-09-15

    Forget MySQL Root Password 1. Stop the mysql service > / Etc / init.d / mysql stop 2. Start the server without password > Mysqld_safe - skip-grant-tables & 3. Connect to the mysql server > Mysql-u root 4. Setup new MYSQL root user password &g

  • ubuntu forget your password, forgot root password solution! 2010-09-22

    ubuntu's root default is to prohibit the use of the installation, they also do not require you to set the root password, and Red Hat systems series here is different. To use, to the root password on the line, sudo passwd root: r2 I0 w / x5 t6 z "T4 ~

  • redhat forget the root password 2011-03-28

    Long time never used a virtual machine linux system, and today use the root user can not login, password, forgotten. Subsequently found online, find a feasible solution, the following steps to reset the root password can be recorded as follows, to sh

  • gentoo forget the root password how to modify the root password 2010-05-31

    Into the grub, usually by up and down arrows to select the boot so that the kernel line by e editors: kernel / vmlinuz root = / dev/sda2 init = / bin / bash rw Note that bold, that is, your original content to add kernel options Press enter into forc

  • CentOS Linux root password change 2010-10-26

    Two days in their own virtual machine machine coat VMWare, and then installed above the CentOS 4.8, and then intends to install an oracle database on it, version: oracle9i. Installing CentOS no problem, set the root password, and then through the Win

  • MySQL: forget the root password 2011-07-19

    Can make the following steps to re-set the MySQL root password: Under Linux: 1. First, to confirm the status of the server for security, that is, no one can arbitrarily connect to the MySQL database. Because the MySQL root password reset period, MySQ

  • MacOS forget the root password 2011-01-19

    Today, look to upgrade the system, you need the root password. Forget. Result, most online said to have problems following through on their own machines. 1) Restart Mac OS X, restart the computer in the process, holding down the Command key and S key

  • On the problem under Linux root password 2011-03-16

    Students get in a few days to see him of the Linux root privileges, su root when the root password so that he knocked himself did not know. Looks like this password was set when the installed Linux, if they set up what was not, then the system will a

  • mysql create users and forget the root password 2011-04-21

    1 Create mysql user Quote grant all on myidb .* to myidb @ 'localhost' identified by'password '; revoke all on myidb .* from myidb @ 'localhost'; Description: In addition to grant / revoke commands, and other rights associated with the implementation