Re: Double password prompt

Per Hedeland (per@erix.ericsson.se)
Wed, 13 Sep 1995 21:55:11 +0200 (MET DST)

>Per Hedeland sez
>> The easiest way to do this on many Unix systems is to,
>> once you've logged in, check the output of 'who' (note that the hostname
>> may be truncated there though) - unfortunately this doesn't work on
>> HP-UX 9.03 at least

Parick Steranka kindly suggested that I should check the man page, which
I did ('who [-muTlHqpdbrtasAcR] [file]' indeed - someone must have had
altogether too much time on their hands...:-). It seems 'who -R' is the
thing to use on HP-UX:

-R Displays the user's host name.

(It even compensates for the truncation I mentioned.)

> Ok, Now things are getting strange. Following Per's advice, I login as a
>regular user, type "who -T" and see:
>
>ctrown + ttyp9 Sep 13 11:08 . 7429 64.0.182.80

I gather -T tries to print some comment from /etc/inittab or somesuch,
only falling back to the hostname as a last resort. Try -R instead - but
see below too.

> I checked netstat's output and saw:
>
>tcp 0 0 phantasm.ecst.csuchico.edu.pmd
> crumm.net.CSUChico.EDU.1011

Then crumm.net.CSUChico.EDU (it is *not* case-independant) in
/etc/hosts.equiv *should* work...

> Something I did neglect to mention earlier is that I am using in.pmd for
>my login service. The binary I'm using is the one that I found on Livingston's
>FTP site, dated Feb. I believe.

Could be something wrong (or "incompatible") with its lookup of remote
IP address and address->name, I suppose - try with rlogin and see if it
makes a difference.

--Per