Operating System - HP-UX
1833998 Members
1513 Online
110063 Solutions
New Discussion

Incorrect user name returned by logname

 
Kafsat Taiyus_1
Occasional Contributor

Incorrect user name returned by logname

Just to let you know. Few weeks ago I posted this problem. We finally figured out it is a bug in HPUX 11.11 and there is a patch for it.

PHCO_25452:
(
SR:8606228311 CR:JAGad97368 )
Due to duplicate entries problem in the utmpx file, we had
more than one entry for the same pts/pty/tty. This leads to
a situation wherein only one of the entries in the
/etc/utmpx file is correct and signifying the current
session of the user and the rest of the entries being
incorrect. They correspond to processes that no-longer
exist but still are marked as user processes. logname and
getlogin would report incorrect username in this case.
)

1 REPLY 1
harry d brown jr
Honored Contributor

Re: Incorrect user name returned by logname


If I remember correctly you stated you had multiple user names with a UID of 0. What does this patch have to do with a bad security policy?

live free or die
harry
Live Free or Die