You may be able to boot into single user mode and/or append init=/bin/sh to the lilo boot process* which will drop you to a prompt without requesting a login.
*hit <shift> at the lilo prompt then type Linux init=/bin/sh Once at the prompt, you should be able to rebuild your /etc/profile file. In my opinion, you shouldn't use anything other than vi or emacs to edit important conf files. Ian On Sun, 1 Jun 2003, Luciano ES wrote: > Hi. I am running Red Hat 7.3 and I just deleted my /etc/profile and can no > longer log in. I was editing it, saved it, but Kate saved a zero byte file instead > of what I saw on the screen. What can I do to recover? > > Thanks, > > -- > Luciano Espirito Santo > Santos - SP - Brasil > > > _______________________________________________ > Seawolf-list mailing list > [EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/seawolf-list > ------------ Dr Ian Firla Robert Graves Trust | "A partial count of the software available St John's College, Oxford | in just one noncommerical Linux system OX1 3JP - +44-(0)7855-310565 | would have cost about $1.9 billion to develop http://www.robertgraves.org | ... the way Microsoft does it" Bruce Perens _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/seawolf-list