Solved

Backspace at login prompt

Posted on 2003-11-10
14
938 Views
Last Modified: 2013-12-27
I would like Backspace to be ^H, as this is what Telnet and our terminal emulator sends (correctly).  At the login prompt, however, Backspace is interpreted as ^? (Delete) whereas once logged in it is then ^H.  We don't even set using stty erase in .profile or .login.  How can I change the terminal behaviour AT the login prompt i.e. prior to logging in without having to reconfigure Telnet etc.
0
Comment
Question by:CuthbertDibbleGrub
  • 7
  • 3
  • 2
  • +1
14 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 9714368
I "think" you can only do this in your telnet client
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9714709
Our Unixware servers never did this - behaved impecably, even with same terminal emulator settings and with Telnet - only happens on Solaris - surely the 'pre-login' terminal behaviour must be configurable on the Solaris box somewhere - I'd rather leave Backspace as ^H as that works absolutely everywhere else!
0
 
LVL 18

Expert Comment

by:liddler
ID: 9714854
Might be in the ttya-mode settings in the OBP, but I "think" this is only for the serial console port.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 9719222
In command line:

stty erase "^H"

You can put it in your .profile.


IF you do telnet from a windows PC, set the TERM=ansi, if you use secure shell client login from PC,
TERM=vt100
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9720532
yuzh,

It's too late at that stage.  I'm after the default terminal settings before you actually log in.  As I've said, after login, all is well.  Essentially, I need to know what stty settings are used by the login process itself.  If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind.  I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9720533
yuzh,

It's too late at that stage.  I'm after the default terminal settings before you actually log in.  As I've said, after login, all is well.  Essentially, I need to know what stty settings are used by the login process itself.  If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind.  I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:CuthbertDibbleGrub
ID: 9720534
yuzh,

It's too late at that stage.  I'm after the default terminal settings before you actually log in.  As I've said, after login, all is well.  Essentially, I need to know what stty settings are used by the login process itself.  If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind.  I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9720542
What happened there!  To conclude:

"...and that includes at the login prompt."
0
 
LVL 38

Expert Comment

by:yuzh
ID: 9720606
If you don't want to change all the users .profile, you can put :

stty erase "^H"

in the globe login script /etc/profile

In this case, change one file apply to the whole side.
0
 
LVL 2

Expert Comment

by:CadburyKat
ID: 10169546
The client needs to be aware of the settings that you are after.

The server is not configurable until .profile type config is read.

Work on the Client Side.
0
 

Accepted Solution

by:
CuthbertDibbleGrub earned 0 total points
ID: 10172067
God Bless Usenet! Here's the answer...

You may modify the /kernel/drv/options.conf file and replace "7f" with"8".

For example, modify -

ttymodes="2502:1805:bd:8a3b:3:1c:7f:15:4:0:0:0:11:13:1a:19:12:f:17:16";

to

ttymodes="2502:1805:bd:8a3b:3:1c:8:15:4:0:0:0:11:13:1a:19:12:f:17:16";

Reboot

This effectively maps ^H as backspace on the server so it works even pre-login.  Everyone's happy with this solution as it's more standardised and we can configure the few tools that don't use ^H individually.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 10172310
Hi CuthbertDibbleGrub,

    Glad to hear you  found a good answered, do you want to refund the points, and PAQ this question?

    yuzh

Page Editor
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 10172356
Yes please (how do I do that?)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now