stty erase r

after hitting this command...on pressing r acts as a backspace character....

how to disable this function

Better thing is you can quit the session. Hope this setting is not in your .profile. If so you have to login through some one else user id and then edit your .profile.

Is .profile maintained as 666, I dont think so.

If its 644, how would you be able to edit it from some other id? Thats not possible !!!

The exact same way you made "r" the backspace:

stty erase <key> 

where key is the key you want to use as backspace.

Matrixmadhan

Yeah i agree .profile is 644 but will a chmod 777 * will work and change .profile's permission i doubt it. Need to check.

Systemshock

Typing stty erase <key> will erase the letter 'r' so the shell will understand like stty ase. So this wont work

No,
this wont work,
you cannot change the perm bits to 777 if you are not the owner or effective user.