Are you sure the bash shell it drops you into is a root shell?
Sure sounds to me like you're getting a normal user shell or something.
One thing you can try is to 'su root' in the shell. If you're already
root, then the su will automatically succeed. If not, you'll have to type in
the
root password and then you should be able to edit the file as normal.
Cheng
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of April
> Escamilla
> Sent: Friday, March 19, 1999 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: *BIG* Problem with /etc/rc.d/rc.local
>
>
> 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
>
> ---------------------------------------------------------------------------
> Send administrative requests to [EMAIL PROTECTED]
>
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]