work around to allow an @ in the password

Greetings. I have a script that uses a user name and password, where
the first character in the password is a ' [at] '. 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 [at] in the
password? Using HP-UX B.11.11 for an OS. Much appreciated,

Bryan
Bryan [ Do, 31 Januar 2008 19:20 ] [ ID #1920602 ]

Re: work around to allow an @ in the password

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 ' [at] '. 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 [at] in the
> password? Using HP-UX B.11.11 for an OS. Much appreciated,
[...]

[at] is the kill character by default on HPUX. The lnext character
is \. So you should be able to type \ [at] .

Note that is possible to change that default so that it is more
like on other modern Unices (<Ctrl-U>, <Ctrl-V>), IIRC that has
to with doing the stty on a special /dev/xxx device.

--
Stephane
Stephane CHAZELAS [ Do, 31 Januar 2008 19:53 ] [ ID #1920606 ]

Re: work around to allow an @ in the password

Bryan <bryan.engebretsen [at] sage.com> writes:

> Greetings. I have a script that uses a user name and password, where
> the first character in the password is a ' [at] '. 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 [at] 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.
Maxwell Lol [ Fr, 01 Februar 2008 14:08 ] [ ID #1921508 ]

Re: work around to allow an @ in the password

Maxwell Lol <nospam [at] com.invalid> writes:

>Bryan <bryan.engebretsen [at] sage.com> writes:

>> Greetings. I have a script that uses a user name and password, where
>> the first character in the password is a ' [at] '. 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 [at] 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 " [at] " 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.
Casper.Dik [ Fr, 01 Februar 2008 14:28 ] [ ID #1921510 ]

Re: work around to allow an @ in the password

On 01 Feb 2008 13:28:29 GMT, Casper H.S Dik wrote:
[...]
> The " [at] " is the original "erase" character so it interpreted by the
> terminal handler, probably.
[...]

[at] 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
Stephane CHAZELAS [ Fr, 01 Februar 2008 15:15 ] [ ID #1921511 ]
Linux » comp.unix.shell » work around to allow an @ in the password

Vorheriges Thema: unix,cobl, sap,.net brief description
Nächstes Thema: Production Support Consultants required