Operating System - HP-UX
1836636 Members
1690 Online
110102 Solutions
New Discussion

Re: @ character kills me.

 

@ character kills me.

Hello,
I have a terrible problem with the "@" character. Each time a log in a server, each time I type @ character, it deletes the line. This is in csh. If I change to ksh , the behaviuor is it prints the @ and return to the next line. Of course, in any other workstations I can type it with no problems.

What is happening?
6 REPLIES 6
Peter Godron
Honored Contributor

Re: @ character kills me.

Hi,
do a stty -a
and look for the delete line.
Then change with stty.
man stty should help explain.
Cem Tugrul
Esteemed Contributor

Re: @ character kills me.

http://docs.hp.com/en/B2355-90690/stty.1.html

As Peter mentioned stty is what you need
you can see by the command stty -a
and of course you may change according to your usage

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Jeff Schussele
Honored Contributor

Re: @ character kills me.

Hi Raul,

The proper solution is to not use @ in a login name nor PW. The system will interrogate the term type at login & the termcap definition will be used. Same goes for the # and & and * symbols as well. Just don't use them.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Tor-Arne Nostdal
Trusted Contributor

Re: @ character kills me.

The user and password is given to the system before the system have had a chance to determine any terminal settings aso.

See man pages for getty to see which characters you must avoid in username/password.

The man page also explain a bit on the login process.

If you also see man passwd, you will see an advice to use 7-bit characters in password.

There is still some special characters to choose between, as well as the fact that unix differ between upper/lower case.
In total this should give sufficient variations for choosing a cryptic password...

This will also help avoiding problems due to changes to keyboard settings aso.
The 7-bit characters are normally easily available on any keyboard.
In my company we have several keyboard layouts and it would be a mess trying to guess for the appropriate key for a password which is not displayed...

-----------
a silly remark: a username with @
like f.ex. me@user
what should the mail address be... me@user@host.domain

/Tor-Arne
I'm trying to become President of the state I'm in...
Bill Hassell
Honored Contributor

Re: @ character kills me.

HP-UX terminal settings default to using @ for a line kill (cancel the current input) and # for erase 1 character (like a backspace). This is the setting before you login. After login, assuming normal /etc/profile, /etc/csh.login and .profile files, after login your stty settings will be changed to normal. There is a special device file: /dev/ttyconf which can be used to set the pre-login defaults.

So for the one workstation, you may not be logging in 'normally', that is the login window is not a login window. The easiest way to fix this is to create a .Xdefaults file in all user $HOME directories, something like this:

echo "*loginShell: true" > $HOME/.Xdefaults

then start a new window with this user and you should see the change in the stty -a settings.


Bill Hassell, sysadmin

Re: @ character kills me.

The solution was 'stty kill CtrlU'