- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Backspace key taken as garbage during login
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 09:26 PM
11-04-2009 09:26 PM
Query about backspace key working funny on my HP systems (B.11.31 U ia64).
During login, if the user name is misspelled and then corrected by pressing the backspace key, the final name looks right on screen but login doesn't happen. This means that though the characters are deleted but the system takes backspace as some control character.
Not an serious or abnormal issue, but just wanted to check if there is an option (system configuration) to correct this.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 09:43 PM
11-04-2009 09:43 PM
Re: Backspace key taken as garbage during login
echo $TERM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 09:45 PM
11-04-2009 09:45 PM
Re: Backspace key taken as garbage during login
xterm
Is the right terminal or shall i change it to vt100 or something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 09:45 PM
11-04-2009 09:45 PM
Re: Backspace key taken as garbage during login
stty erase "^?"
which sets the erase character to "^?". See man stty for more info on "control characters" (and lots of other things too).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 09:47 PM
11-04-2009 09:47 PM
Re: Backspace key taken as garbage during login
you can give a try :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 10:01 PM
11-04-2009 10:01 PM
Re: Backspace key taken as garbage during login
- Check # echo $TERM
- Also check the stty for backspace key by typeing:
# stty erase
It will look like:
# stty erase ^?
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 10:39 PM
11-04-2009 10:39 PM
Re: Backspace key taken as garbage during login
During login, on screen it works as perfect by deleting the previous character, but the system doesn't take it.
How do i set the TERM variable for the system so that it's available for next logins?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 10:50 PM
11-04-2009 10:50 PM
Re: Backspace key taken as garbage during login
.profile
Then type in
stty erase ^?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 12:01 AM
11-05-2009 12:01 AM
Re: Backspace key taken as garbage during login
I think this has something to do with the default shell that is invoked by the 'login' command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 12:27 AM
11-05-2009 12:27 AM
SolutionWHen logging in, the backspace key will NOT work, use the # key to backspace one character at a time, or use @ to erase the line and start again.
This is why these characters are NOT allowed as part of your login name or password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 03:26 AM
11-05-2009 03:26 AM
Re: Backspace key taken as garbage during login
That's probably a good idea. But Bill's and JRF's replies in these threads indicates you can use /dev/ttyconf.
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1217841
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1150375
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=601973
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=181001
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1066385
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=999534
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=997484
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=982939
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 01:32 PM
11-05-2009 01:32 PM
Re: Backspace key taken as garbage during login
In Putty, go to Terminal -> Keyboard.
You will see the "The Backspace key", pickup control-?(127) and see how it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 07:12 PM
11-05-2009 07:12 PM
Re: Backspace key taken as garbage during login
The default settings for the terminal driver is @=delete-line and #=backspace. Every HP-UX system since the 1980's has used these defaults. The reason is historic as these characters were used with hardcopy terminals where a backspace key cannot erase the ink on the paper. Today, they get in the way and your standard /etc/profile will have two stty statements that set the 'normal' characters for delete-line and backspace. However, /etc/profile does not run until after you login so it does not affect the login and passwd programs.
If you are running 10.20 or any version of 11.xx you can fix this using the ttyconf device file. Do this once while you are running:
stty erase "^H" kill "^U" < /dev/ttyconf
and now backspace will work for login, and @ can be used in a password. It will take effect for all new logins except for the console (which is opened at bootup). To set the console login, you'll need to create a small startup script the runs early in the boot process.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2009 03:16 AM
11-16-2009 03:16 AM
Re: Backspace key taken as garbage during login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2009 01:52 PM
11-16-2009 01:52 PM
Re: Backspace key taken as garbage during login
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2009 02:52 PM
11-16-2009 02:52 PM
Re: Backspace key taken as garbage during login
that DOESN'T apply until AFTER login, whch the OP isn't referring to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 06:56 AM
11-18-2009 06:56 AM
Re: Backspace key taken as garbage during login
On a 11.31 ia64; I am seeing this same issue of backspace causing garbled login credentials.
I used following to get backspace to work even at login, as suggested above;
stty erase "^H" kill "^U" < /dev/ttyconf
But, doesn't ^H translate to shift+backspace ?
So, on the same lines, I tried doing;
stty erase "^?" kill "^U" < /dev/ttyconf
It succeeded in setting;
stty < /dev/ttyconf
erase = DEL; kill = ^U;
swtch
But, this doesn't resolve the issue of garbled input at login if I use backspace now!
Any clue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2009 07:08 PM
11-19-2009 07:08 PM
Re: Backspace key taken as garbage during login
I don't understand the term "login credentails". Are you talking about login and password? When you say garbled, do you mean that typing abc produces a string like Cgfc$3(55?
> I used following to get backspace to work even at login, as suggested above;
stty erase "^H" kill "^U" < /dev/ttyconf
> But, doesn't ^H translate to shift+backspace ?
No, the nomenclature "^H" translates to control-H and on a normal keyboard, this produces the backspace character (see man ascii). DEL is the delete character which matches the "^?" stty setting.
> So, on the same lines, I tried doing;
stty erase "^?" kill "^U" < /dev/ttyconf
>
> It succeeded in setting;
> stty < /dev/ttyconf
> erase = DEL; kill = ^U;
> swtch
And that is correct, but not what most users want. Use the command:
stty erase "^H" < /dev/ttyconf
Then use the backspace key. Note that all of this applies to terminal sessions such as xterm, hpterm and dtterm. If you are filling a special form in Xwindows, then ttyconf probably won't help.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2009 11:49 PM
11-19-2009 11:49 PM
Re: Backspace key taken as garbage during login
stty kill '^X' intr '^C' werase '^W' erase '^?'
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1387943
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 10:49 AM
11-21-2009 10:49 AM
Re: Backspace key taken as garbage during login
>And that is correct, but not what most users want.
Unfortunately some new fangled windows and other terminal emulator use DEL and not control-H.
But since I use both interchangeably and I'm been using computers a long time and I'm used to the DEL key doing nothing, I use ^H. And ^X for kill.