On Mon, Jun 24, 2002 at 08:21:39AM -0600, [EMAIL PROTECTED] wrote:
> 
> On a standalone Linux Box with Winxx partition, someone has put 
> some strange command in either .bashrc or .profile file. 

This should affect a single user only.  Is it "root" that you are
talking about ?

> 
> So  after  booting to linux (RH5.2) and  logging in as root, it 
> enters into some infinite loop. Or to say  exactly  bash prompt 
> doses not appear. 
> 

a) RH-5.2 is rather historic. Kernel 2.0.xx or something ?

b) If it is only for "root" then boot in as an user,  then do  a
   su to root, then cd /root. Make .bashrc and .bash_profile out
   of action by renaming them ... reboot ... correct  errors  on
   the renamed files ... back into action.
   
c) If you are in no position to boot at all either as root or as
   an user, recovery only  possible  with  a  good  rescue disk/ 
   stand-alone distro. Mount root  partition and  examining your 
   start up scripts, /etc/inittab and /etc/profile.  You need to  
   manually locate the error and fix it.
   
>        
> All the PCs here are  without  floppy  drives - not networked. 
> LILO directly goes to Linux box by default. 
> 

Oops ! then stand alone distros may be difficult. Do  they have
any CDROM ?

>
> Can we go directly to login prompt by-passing these start-up 
> files ? 
> 

Single user mode may not work if the root bash setup files are
affected.

HTH

Bish

--
:
####[ Linux One Stanza Tip (LOST) ]###########################
  
Sub : Lesser used commands (expand)                  LOST #168

expand is a filter that converts tabs to  spaces.  If tabs are
to be removed from a file, it is as simple as:
'$expand filename > newfilename'

####<[EMAIL PROTECTED]>####################################
:



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to