work around to allow an @ in the password
work around to allow an @ in the password
am 31.01.2008 19:20:55 von Bryan
Greetings. I have a script that uses a user name and password, where
the first character in the password is a '@'. I can change the
password of the user id, but the only way it will accept the password
is if I put an '\' in front of the password. Is there a work around
for this, or a config file that I can change to allow an @ in the
password? Using HP-UX B.11.11 for an OS. Much appreciated,
Bryan
Re: work around to allow an @ in the password
am 31.01.2008 19:53:36 von Stephane CHAZELAS
On Thu, 31 Jan 2008 10:20:55 -0800 (PST), Bryan wrote:
> Greetings. I have a script that uses a user name and password, where
> the first character in the password is a '@'. I can change the
> password of the user id, but the only way it will accept the password
> is if I put an '\' in front of the password. Is there a work around
> for this, or a config file that I can change to allow an @ in the
> password? Using HP-UX B.11.11 for an OS. Much appreciated,
[...]
@ is the kill character by default on HPUX. The lnext character
is \. So you should be able to type \@.
Note that is possible to change that default so that it is more
like on other modern Unices (, ), IIRC that has
to with doing the stty on a special /dev/xxx device.
--
Stephane
Re: work around to allow an @ in the password
am 01.02.2008 14:08:20 von Maxwell Lol
Bryan writes:
> Greetings. I have a script that uses a user name and password, where
> the first character in the password is a '@'. I can change the
> password of the user id, but the only way it will accept the password
> is if I put an '\' in front of the password. Is there a work around
> for this, or a config file that I can change to allow an @ in the
> password? Using HP-UX B.11.11 for an OS. Much appreciated,
I don't have experience in HP, but some systems allow you to insert a
control character after typing a Control-Q.
Re: work around to allow an @ in the password
am 01.02.2008 14:28:29 von Casper.Dik
Maxwell Lol writes:
>Bryan writes:
>> Greetings. I have a script that uses a user name and password, where
>> the first character in the password is a '@'. I can change the
>> password of the user id, but the only way it will accept the password
>> is if I put an '\' in front of the password. Is there a work around
>> for this, or a config file that I can change to allow an @ in the
>> password? Using HP-UX B.11.11 for an OS. Much appreciated,
>I don't have experience in HP, but some systems allow you to insert a
>control character after typing a Control-Q.
The "@" is the original "erase" character so it interpreted by the
terminal handler, probably.
Change the tty settings to more sane values.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Re: work around to allow an @ in the password
am 01.02.2008 15:15:07 von Stephane CHAZELAS
On 01 Feb 2008 13:28:29 GMT, Casper H.S Dik wrote:
[...]
> The "@" is the original "erase" character so it interpreted by the
> terminal handler, probably.
[...]
@ is the original *kill* character. The original erase is "#"
(and still is on HPUX). And as I said earlier, lnext is "\".
> Change the tty settings to more sane values.
[...]
To change the defaults on HPUX:
stty erase '^H' kill '^U' lnext ^V' < /dev/ttyconf
(to be put in boot script).
See the stty(1) man page.
--
Stephane