Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • echo-ing off during boot of RHEL7 to reset root password

    Posted on

    (As I prepared to post this, I discovered the problem, so I answered my own question. The information may be of interest to readers anyway, as it caused me no end of grief...)
    When I boot and set init=/bin/sh to reset the root password, echoing is mysteriously turned off. This makes entering commands extremely tedious, though possible. (To make it worse, on some systems the first character of each command gets lost, and must be doubled to enter the command correctly.) I tried to turn echo-ing on in the root shell using stty echo, but bash is unable to reset parameters on stdin during boot.

    The experience I have had is only on VMs - I haven't tried to see if this problem exists on bare metal, but I assume it does.

    The answer lies in the rhgb keyword on the kernel command-line. Evidently this sets up stdin to not echo, and when bash starts, you're in trouble. Deleting the rhgb keyword from the command line before boot solved the problem.

    This should be in the Installation Guide sec 28.1.3, but it isn't

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat