![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
||||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
|
||||
|
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 |