Solved

Root password error

Posted on 2000-02-14
8
307 Views
Last Modified: 2010-04-20
I'm new to the Linux world, so I'll try to explain as far as I know.  Basically, I've installed RHL 6.1, my X-Server started of with a blank screen.  I guessed it could be my graphic card.  I downloaded the linux driver from Windows 98 and this what I did.  Restarted my PC, at the LILO boot: I typed "linux single" so that it won't go into the X-server.  I wanted to install those VGA linux drivers but I need the root user access.  The problem is when I typed the password for the root access, it says "Login incorrect".  I'm pretty sure of the root password that I created during the installation.  What's going on?

nb: I'm not familiar with UNIX commands.
0
Comment
Question by:TRD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 6

Expert Comment

by:snoegler
ID: 2519042
Maybe if you're from germany ( or any other non-english language country), the keyboard layout could be the problem.
0
 
LVL 1

Expert Comment

by:bcoleman
ID: 2519491
Can you login as someone else?  Do you have caps-lock on?  You don't want caps-lock on.
0
 

Expert Comment

by:kufel
ID: 2520162
Basically, you want to boot from CD/floppy or in single-user mode.
Single-user mode in some versions of unix still prompts for the root
password, but can nevertheless be used to recover from messing up the root
line in /etc/passwd farther along, e.g. changing the shell to something
inappropriate.  And in some versions of unix it doesn't ask for the password.

To boot in single-user mode, in a prom monitor (e.g. L1-A on a Sun, or press
ESC while booting an SGI), you want a command like "single" or "boot -s"
or "b -s".  At the linux LILO prompt, you want something like "linux s".
If that gives you problems, "linux init=/bin/sh" might bypass the normal
boot sequence and just give you a shell, but you'll have to remount the
root filesystem (see below).

After single-user mode, it's cleaner to reboot rather than to press ^D to
do the multiuser boot, because the init "runlevel" mechanism is hacky.

It might be more rewarding to boot from OS installation media.  They usually
give you the opportunity to run a shell (e.g. "sh" in irix inst; ctrl-alt-F2
in redhat linux).  In this case, do a "df" to find your root partition on
something like /root or /mnt.

Sometimes it's easier to make like a "cracker" and break in to it.
I imagine that most people who forget their root password have machines
which can easily be broken into...

Once you're in, you can edit the password file, or you can change the
password without supplying the old one as root by typing "passwd root".
(Depending on how you got there, a plain "passwd" might not know it's
root's password you're trying to change.)

If you clear the password entry, be disconnected from the internet until
you've set a new root password.

If the above doesn't answer your question, please look for a faq specific to
your version of unix; if you end up posting here, please state version info.

Problems editing the password file or running "passwd root" include:

/usr might not be mounted in single-user mode (and /bin might be a symlink to
/usr/bin, so most things might be on /usr).  You can probably just type "mount
/usr" or "/sbin/mount /usr".  Other filesystems might also be unavailable
but probably aren't needed just to change the password (and you're about
to reboot to get things back to normal after you change root's password).

The root filesystem might be mounted read-only, depending on how you
got there.  "mount / -o remount,rw" might fix this.

0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 

Expert Comment

by:kufel
ID: 2520177
0
 

Expert Comment

by:kufel
ID: 2520185
0
 

Accepted Solution

by:
treydk earned 50 total points
ID: 2521809
I see your problem that you're not familiar with UNIX commands.  When you start "Linux -s" or "Linux Single" from the LILO Boot:, you will get a "BASH#" (without quotation marks).  You are actually in the root access and you don't have to login as "root" nor typing the password.  To check who you are, type "whoami" (without quotation marks) at the "BASH#".

Hope this solves your problem.
0
 

Author Comment

by:TRD
ID: 2525257
You're right!  The BASH# prompt is the root access.  Sorry for those who posted tons of reply, I guessed I just didn't know how to specify my problems.

Thanks again treydk
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question