1836372 Members
2203 Online
110100 Solutions
New Discussion

Re: login prompt Qn #2

 
Shahril M
Frequent Advisor

login prompt Qn #2

Hi,

On some boxes, if I decide at the login prompt that I do not wish to log in after all, I can hit ^D to cancel the login.

On others, I have to hit the escape character ^], which brings me to the telnet prompt, after which I can ^D.

Can someone share w/ me where this is configured?


TIA,
Shahril
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: login prompt Qn #2


stty quit ^D

live free or die
harry
Live Free or Die
Shahril M
Frequent Advisor

Re: login prompt Qn #2

Hi Harry,

On whose account?

2 scenarios:
a) first telnet from a 3rd-party software, say Windows Telnet
b) telnet from an UNIX account

a) Whose account? I have not even logged in as anyone yet.

b) Eg. I first logged in to a machineA as user1. stty -a shows that quit is . So I set as ^D. I telnet to machineB, and get the login prompt. It still does not work.

Appreciate your reply, thx.


Rgds,
Shahril
harry d brown jr
Honored Contributor

Re: login prompt Qn #2

Shahril,

See Bill's answer:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbf5f0fe6d0f7d61190050090279cd0f9,00.html

live free or die
harry
Live Free or Die
Wodisch
Honored Contributor

Re: login prompt Qn #2

Hi Shahril,

actually you are talking about different things:

1: ^D is the character-code for "EOF" (end of file), which tells your shell to exit. But only if permitted, you can use the command "set -o ignoreeof on" to ignore that combination! That's all happending on the remote side, far away form your desktop.

2: ^[ tells your TELNET client to go into command/menu mode. Typing ^D (or QUIT) there exits the client, hence the network connection and then in turn your shell on the remote side.
You do this on your LOCAL desktop. Programs running in your session on the remote station wouldn't like it :-(
So you will have to configure that for your TELNET client software (not sure that you can really do that with M$'s TELNET).

FWIW,
Wodisch