Please help me!!
My redhat Linux 5.2 box will NOT boot completely, and drops me into a
bash shell under root to fix the problem, which I will describe as best I
can. Prior to this situation, the machine re-booted normally. Before this
error occured, I changed but one thing -- I added 4 lines to the "rc.local"
file to help install IP Masquerading. I'll list them here:
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
I understand that "rc.local" is one of the last files to be run during
the boot sequence. I also understand that as root, I should be able to
manipulate this file in the shell and *hopefully* reboot normally.
So I tried to delete the offending lines of code, but was unable to do
so, as the file is write protected. I thought that this was due to the
file permissions, so I tried to change them with chmod. Sadly, nothing
helped, and all chmod calls failed to change its permissions. Despite the
file being owned by root and its ls -l configuration set as
-rwxr-xr-x
I was unable to change it in vi.
Any thoughts out there? Should I try a different editor? Are the file
permissions set somewhere else that may be affecting this file? Is chmod
even the right way to go? One thing I do have is a copy of the original
"rc.local" on another system. Is there anyway to override this write
protection and copy the original back in?
I will be grateful for any info you can pass my way!!
Thanks in Advance,
April Escamilla