Operating System - HP-UX
1819839 Members
2624 Online
109607 Solutions
New Discussion юеВ

Backspace doesnot work when users type username/passwd

 
SOLVED
Go to solution
Shu Lei
Occasional Advisor

Backspace doesnot work when users type username/passwd

Hello everyone.

Here comes the detail of my question:
After a telnet session established to HP-UX 11.0, the backspace doesn't apply to the input whatever the TERM is, so that users are not able to correct their input.

I guess it's nothing to do with .profile and "stty" settings, for telnet session occurs before reading the .profile.

Thank you for your time in advance.
Lorne Shu
Lorne Shu
11 REPLIES 11
Alex Glennie
Honored Contributor

Re: Backspace doesnot work when users type username/passwd

Shu Lei
Occasional Advisor

Re: Backspace doesnot work when users type username/passwd

Hi Alex,

I believe that's something before reading "stty" settings in .profile for I have tried "stty" before and found out that "stty" doesn't work in this case.

Anyway, thanks.
Lorne Shu
Darrell Allen
Honored Contributor

Re: Backspace doesnot work when users type username/passwd

Hi,

I believe there are several threads concerning this in the forums but basically the erase character needs to be specified. You can do that with: stty erase

You can choose another key if you like. You can add it to users' .profile or to the system's /etc/profile. Csh users have /etc/csh.login or .cshrc.

Also, terminal emulation programs generally let you configure the delete and/or backspace keys. Often, it's just telling the emulation program to send the other ascii character instead of its default.

As far as entering a backspace while typing the password, you may be able to use instead. works for my terminal emulator.

Darrell

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Carlos Fernandez Riera
Honored Contributor

Re: Backspace doesnot work when users type username/passwd

try #
unsupported
Alex Glennie
Honored Contributor

Re: Backspace doesnot work when users type username/passwd

out of interest are you using something like reflections on a PC to telnet to the hpux server ?
James Beamish-White
Trusted Contributor

Re: Backspace doesnot work when users type username/passwd

Ahhh, I think I understand your question:

me> telnet yourserver
Trying...
Connected to yourserver
Escape character is '^]'.

login: blablablax (and can't delete mistakes)

I have never been able to do that either. The user, when typing in their username or password, cannot backspace to delete mispellings. However, if you make a mistake when typing the username or password, type the @ symbol, and the telnetd will ignore all characters beforehand. e.g. if your username is 'myuser', then at the telnet prompt this will work:
login: myuss@myuser
password:

CHeers,
James
GARDENOFEDEN> create light
Shu Lei
Occasional Advisor

Re: Backspace doesnot work when users type username/passwd

Alex,
I have tried "cmd" and reflection to establish the telnet session; although they act a little different to backspace, both of them failed at last.

By the way,
Darrell, users could hardly set backspace with "cmd", how could they do if they are using "cmd" and ansi as terminal type?

Carlos, what do you mean by "#"? as backspace?

Thanks all of you who is replying so far!
Lorne Shu
Alex Glennie
Honored Contributor

Re: Backspace doesnot work when users type username/passwd

this is a guess as I cant reproduce your problem but try looking in reflections->setup-> terminal->emulation .... maybe set it to VT-something and then look at the keyboard settings as you can now map the vt backspace to delete etc ?
Shu Lei
Occasional Advisor

Re: Backspace doesnot work when users type username/passwd

Hi Carlos & James,

I understand what exactly what you mean for "#" and "@". I would like take them as a solution to users, if I cannot find the ideal way on server side (in spite of disturbing users)to solve the problem.

in summary to the solutions for telnet,
when you make a mistake while typing username,
just type:
'#' means "Send Telnet Erase Character";
'@' means "Send Telnet Erase Line";
after that, type the right characters or retype again.

Thank you all for your time.
Lorne Shu
Rodney Hills
Honored Contributor
Solution

Re: Backspace doesnot work when users type username/passwd

Try using the following
stty erase ^h
If you run this command during your hpux boot, then all terminal logins from then on will be able to use the BACKSPACE key!

See man ssty.

-- Rod Hills
There be dragons...
Shu Lei
Occasional Advisor

Re: Backspace doesnot work when users type username/passwd

Thanks a lot to Rodney Hills!
That exactly solved the problem.
Lorne Shu