Operating System - HP-UX
1748156 Members
3805 Online
108758 Solutions
New Discussion юеВ

Re: @ not registering as a valid character upon login

 
SOLVED
Go to solution
uk1
Frequent Advisor

@ not registering as a valid character upon login

Interesting problem. All symbols outside of @ register as a vaild character for a users password. However @ returns a null. Has anyone here experience a similar problem in the past?
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor
Solution

Re: @ not registering as a valid character upon login

Hi David:

The characters like "@" are special to 'getty'. Type:

# stty -a

...to see what mappings you have.

See also, the manpages for 'getty'.

Regards!

...JRF...
Victor Fridyev
Honored Contributor

Re: @ not registering as a valid character upon login

Correct,

RTFM for passwd
WARNING
Avoid password characters which have special meaning to the tty
driver, such as # (erase) and @ (kill). You may not be able to login
with these characters.


HTH
Entities are not to be multiplied beyond necessity - RTFM
Pete Randall
Outstanding Contributor

Re: @ not registering as a valid character upon login

I expect that the @ sign in a login name would suffer the same problems it does when used in a password. From "man passwd":

WARNINGS
Avoid password characters which have special meaning to the tty driver, such as # (erase) and @ (kill). You may not be able to login with these characters.


Pete

Pete
Rodney Hills
Honored Contributor

Re: @ not registering as a valid character upon login

The "@" by default is the "erase" key. If you execute the following-
stty erase ^h
Then all new logins will use backspace for "erase" key. Thus "@" will be a regular character.

You may want to put that command as part of your HPUX startup process.

HTH

-- Rod Hills
There be dragons...
Rodney Hills
Honored Contributor

Re: @ not registering as a valid character upon login

To update my stty command suggestion. I have the following in a startup script under /sbin/init.d -

stty erase '^H' kill '^U' intr '^C' susp '^Z'
Rod Hills
There be dragons...
uk1
Frequent Advisor

Re: @ not registering as a valid character upon login

Ok i guess I get docked for not reading the manual on this one. Sorry guys, sometimes the forums are a easy out. None the less, I do appericate all the responses.

A. Clay Stephenson
Acclaimed Contributor

Re: @ not registering as a valid character upon login

You are also required to "unstar" your profile in this area as punishment for not bothering to read the man pages.
If it ain't broke, I can fix that.
Tom Danzig
Honored Contributor

Re: @ not registering as a valid character upon login

FYI, you can get this to work by escaping the '@' by preceeding it with a backslash.

Also, the password will probably work as is (with the '@') on the console as the '@' has a different meaning there.

Bill Hassell
Honored Contributor

Re: @ not registering as a valid character upon login

The @ and # characters were historically used as KILL (cancel current line) and ERASE (erase previous character) when the console was a teletypewriter (see man termio). These are normally changed after you login to CTRL-C and backspace respectively. Similarly, the default baud rate for a serial port is 300 baud, all of which haven't changed sing the mid-1980's. The good news is that with patches for 10.x and 11.x, the new tty default config devicefile now exists (/dev/ttyconf) and as mentioned above, these (archaic) settings can now be overidden. It's easier to use ttyconf than to educate users...


Bill Hassell, sysadmin