LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (http://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Unable to reset root password / init: "x" respawning very fast (http://www.linuxquestions.org/questions/linux-enterprise-47/unable-to-reset-root-password-init-x-respawning-very-fast-765759/)

gshenbag 10-31-2009 06:10 AM

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.

madmadmod 10-31-2009 09:37 AM

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

gshenbag 12-28-2009 08:59 PM

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

madmadmod 12-29-2009 01:56 AM

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.

ongte 12-29-2009 03:38 AM

Quote:

Originally Posted by gshenbag (Post 3738985)
...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.

gshenbag 12-30-2009 02:19 AM

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


All times are GMT -5. The time now is 04:35 PM.