The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ask for root password dave123 Shell Programming and Scripting 8 01-22-2008 06:09 AM
I need it to prompt me for a root password, so I don't have to log as root lunchtime UNIX for Dummies Questions & Answers 2 06-25-2007 12:21 PM
how to access root priveliges if root password is lost wojtyla Linux 1 02-18-2005 02:24 AM
Lost root password / Can't login as root Perderabo Answers to Frequently Asked Questions 0 06-22-2004 04:40 PM
No root password cyno UNIX for Dummies Questions & Answers 6 08-14-2002 09:57 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2002
Registered User
 

Join Date: Mar 2002
Posts: 10
root password

For some reason my root password is not working ... and I have no idea why

I can't log in as root and i cant su to root


Could anyone tell me how to fix this ?

running Red Hat Linux
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-20-2002
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
reboot and break in

There are two paths here.

One is to reboot and get back into single user mode, which doesn't require a password on 99% of UNIX flavors, when you get to the prompt type:

passwd root

That should let you change the root passwd.

The second path is not as easy. You will either need to make an alternate boot disk or reload your OS.

Also, you can search this site for others who have had problems with losing the root password. Search for "root login problems" or "no root password".

Here is one link.

I neede help!!!



Maybe you will get lucky and can reboot to single user mode and change the password!

Let me know how this works out!

Good Luck.
__________________
My brain is your brain
Reply With Quote
  #3 (permalink)  
Old 03-20-2002
Registered User
 

Join Date: Mar 2002
Posts: 10
ok i rebooted the machine and changed the password in single user mode. it worked perfectly.

However my problem is a little more extensive than this (as usual)

I have the same root passwd on all 4 of my servers. All running Red Hat Linux.

For some odd reason the root passwd will not work on any of my servers. It looks like someone manually changed the root passwd on all my servers (sounds like a hacker).

My question is there a way to change the root passwd on all of my servers without having to reboot every single one of them or creating boot disks ?

The reason i dont want to reboot these servers is because they are production web servers.
Reply With Quote
  #4 (permalink)  
Old 03-20-2002
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
rlogin or rcp

If you have .rhosts files established on each of the other servers, you should be able to execute. rlogin

rlogin systemname -l root

If you have the exact same passwd files, you can use rcp.

rcp mycurrentbox:/etc/passwd theotherbox:/etc/passwd

Then you can login over there as well. If they are not the same you can do this anyway and then restore you password from a backup with out interrupting the users.



If not you may need to reboot them as well.

keep me updated.
__________________
My brain is your brain
Reply With Quote
  #5 (permalink)  
Old 03-20-2002
Registered User
 

Join Date: Mar 2002
Posts: 10
ok,

here is what i did on my local server.

i added a line to my .rhost file in the root home directory :

remote.server.abc root

i set the file permissions to 600


then im using the rlogin command like this :

rlogin -l root remote.server.abc

it wont do anything, it just hangs there


do i need to edit the .rhost file in my remote server, also ??

If so, how will I be able to if the .rhost file has root permissions and i cant login as root ?

i think the .rhosts files have been created for other servers but not for my situation.

i also tried the remote copy command 'rcp' but that seems to be just hanging there also.


My local server is behind a firewall and my remote server is outside the firewall .... could that be an issue ???

btw, thanks for you help.
Reply With Quote
  #6 (permalink)  
Old 03-20-2002
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
You do need to have a .rhosts on both/all systems involved.

Also your format is wrong for the rlogin command.

rlogin hostname -l root


If this doesn't work you will have to schedule downtime to reboot.



__________________
My brain is your brain
Reply With Quote
  #7 (permalink)  
Old 03-20-2002
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 486
Also (from memory) make sure that your default file (/etc/auth/system/default) still exists.

Pretty sure that's it, otheruwise you won't be able to rcmd the other server
Reply With Quote
Google UNIX.COM
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0