Page 1 of 1

Root password Not taking : URGENT

PostPosted: Thu Jan 22, 2009 10:08 am
by kolucoms6
In one of my center , its not taking root password.

Anyways to recover it ?

In other terms , I lost the control of server.

Any solution or re-installation is the only way left ?

PostPosted: Thu Jan 22, 2009 10:55 am
by okli
You could reset it. Have a look at this page and the comments in it:
http://www.debuntu.org/recover-root-pas ... e-and-grub

For specific intruction for the Linux distro you use- do a Google search, e.g. 'reset root password centos'.

PostPosted: Thu Jan 22, 2009 10:58 am
by kolucoms6
I hope SERVER didnt get HACKED as agent can login but but root and admin.

PostPosted: Thu Jan 22, 2009 11:03 am
by okli
I guess you are asking for root password of your operating system, NOT for admin etc passwords for vicidial, right?
Also triple check you are entering the correct password, ensuring caps lock is off, other input language is not selected if connecting via Putty/ssh etc.

PostPosted: Thu Jan 22, 2009 11:05 am
by kolucoms6
When I restart my Dialer, I see a root prompt.

When I enter my password, its NOT taking.

PostPosted: Thu Jan 22, 2009 11:16 am
by kolucoms6
Trying this ::: Lets seee


1. Shut down the machine. (Ctrl+Alt+Del)

2. When it reboot and reach the CentOS boot up screen, then press any key to go into a select menu. Then press “e” and navigate to the second line “grub.conf” line (kernel) and press “e” to edit the line to

option 1 : <SPACE> 1 (” 1″) at the end of the line. OR
option 2: <SPACE> S (” S”) a the end of the line OR
option 3: add “single” to “ro root=LABEL=/ single”
Then hit “ENTER” and press ‘b’ to reboot.

After it reboot, and stop at ‘#” command line, type “passwd” to create the new root password.

Reboot the machine as usual and access your root with new password.


PostPosted: Thu Jan 22, 2009 11:33 am
by kolucoms6
But on another server I see


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-53.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/1
initrd /initrd-2.6.18-53.el5.img



Its already ONE by default..

PostPosted: Thu Jan 22, 2009 1:01 pm
by okli
You are not reading carefully :)

BTW first result of google search (reset root password centos) as I advised you earlier:
http://www.linuxtopia.org/online_books/ ... asswd.html

Do you really dislike Google? I love it, my best friend and mentor for years ;)

PostPosted: Thu Jan 22, 2009 1:47 pm
by kolucoms6
When I boot I get this Error :

switchroot: mount failed: No such file or directory

kernel panic - not syncing: Attempted to kill init!