LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 10-31-2009, 07:10 AM   #1
gshenbag
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
Unable to reset root password / init: "x" respawning very fast


we are at Enterprise linux server rel.4 and recently encountered invalid password when logged in as user root.we are unable to reset root password using USER MANAGER screen.Hence we tried to change password using single user boot but encountered command not found.following error occurs when trying to boot the system

init: "x" respawning very fast: idle for 5 minutes

Appreciate your help in advance.
 
Old 10-31-2009, 10:37 AM   #2
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
you can just delete / replace the password from /etc/shadow (if your in single user mode):

Code:
root:remove-or-overwrite-this-part:14093:0:99999:7:::
If this does not work you can boot into rescue mode (with a cd/dvd) and then chroot into /mnt/sysimage.

good luck
 
Old 12-28-2009, 09:59 PM   #3
gshenbag
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hi
Thanks for your suggestion.
Unable to remove the Root Password from the /etc/shadow file.
Encountered the following error message
chmod:changing permissions of 'shadow':Operation not permitted.

Kindly advise any other alternative method to reset root password.

Thanks,
Ram
 
Old 12-29-2009, 02:56 AM   #4
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
you don't have to chmod the shadow file. just delete the password from /etc/shadow if you are in single user mode (add 'S' to the grub options) and then save with ":wq!" in vi. the '!' at the end writes the file even if it is not writable for the current user.
 
Old 12-29-2009, 04:38 AM   #5
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
Quote:
Originally Posted by gshenbag View Post
...Hence we tried to change password using single user boot but encountered command not found.following error occurs when trying to boot the system

init: "x" respawning very fast: idle for 5 minutes
...
If you are saying that you can't get into single user mode, you will need to boot from the Install CD into rescue mode.

Boot the RHEL4 installation CD and type linux rescue at the boot: prompt.
 
Old 12-30-2009, 03:19 AM   #6
gshenbag
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hi madmadmod,
Thanks for your reply with suggested solutions. we noticed that the attribute sia was set to /etc/shadow file and thereby we are not able to change the password. After changing the attribute, able to reset the password successfully.
We also noticed that there were many other files in our system, whose attributes set to sia. We compared those files attributes in another server and there were no attribute set to sia for similar files. Is it recommended to remove the files already set to sia? Is there any impact in removing the file attribute already set with sia?
Thanks,
Ram
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to reset the root password for mysql on fedora cll975dll Linux - Newbie 1 08-08-2009 10:47 PM
Unable to reset mysql root password soylentgreen Linux - Server 5 08-02-2008 11:05 PM
init id 'x' respawning too fast:disabled for 5 mins r_ramya06 Fedora 3 06-17-2008 10:52 PM
init: initdefault: respawning too fast sankari_s Linux - Newbie 2 12-26-2007 10:06 AM
INIT: id 'x' respawning too fast: disabled for 5 minutes unitcoed Linux - Newbie 1 07-06-2003 08:35 PM


All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration