Operating System - HP-UX
1753521 Members
4611 Online
108795 Solutions
New Discussion юеВ

Re: HP-UX - "login" binary issue

 
SOLVED
Go to solution
Vijayalakshmi
Occasional Advisor

HP-UX - "login" binary issue

Hello All,

I have tried the following command on 2 different HP-UX ( 11.11 PA) machines. I am getting different results in each machine.

machine 1:
# /usr/bin/strings -a /usr/bin/login | egrep -c "^root$"

The output was :
6

machine 2:
# /usr/bin/strings -a /usr/bin/login | egrep -c "^root$"

The output was :
7

Can anyone tell me what may be the reason for this change?

Thanks,
Vijayalakshmi.
9 REPLIES 9
Arunvijai_4
Honored Contributor

Re: HP-UX - "login" binary issue

Can you get # what /usr/bin/login information and post it here from server 1 and 2 ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Vijayalakshmi
Occasional Advisor

Re: HP-UX - "login" binary issue

Hi Arunvijay,

Thanks for the quick reply.

machine 1:
# what /usr/bin/login
/usr/bin/login:
login.c $Date: 2002/09/10 16:23:42 $Revision: r11.11/4 PATCH_11.11 (PHCO_27694)
$Revision: @(#) login CUP11.11_BL2002_0913_6 PATCH_11.11 PHCO_27694
Fri Sep 13 09:32:08 PDT 2002 $

machine 2:
# what /usr/bin/login
/usr/bin/login:
$Revision: @(#) login CUP11.11_BL2001_1121_2 PATCH_11.11 PHCO_25526
Wed Nov 21 10:46:54 PST 2001 $


Thanks,
Vijayalakshmi.
RAC_1
Honored Contributor

Re: HP-UX - "login" binary issue

patches may make difference.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor
Solution

Re: HP-UX - "login" binary issue

From the above o/p, you can clearly see version mismatch and patches applied.

Server 1

$Revision: @(#) login CUP11.11_BL2002_0913_6 PATCH_11.11 PHCO_27694
Fri Sep 13 09:32:08 PDT 2002 $

------------------------------------

Server 2

$Revision: @(#) login CUP11.11_BL2001_1121_2 PATCH_11.11 PHCO_25526
Wed Nov 21 10:46:54 PST 2001 $

You can try to apply PHCO_27694 which is the latest login patch and check it out on Server 2. I bet it should display same. (# /usr/bin/strings -a /usr/bin/login | egrep -c "^root$" == 6)

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: HP-UX - "login" binary issue

Arunvijai_4
Honored Contributor

Re: HP-UX - "login" binary issue

Hi Vijayalakshmi,

Any updates ? Have you applied the patch and checked it out ? Also assign points ,
http://forums1.itrc.hp.com/service/forums/helptips.do?#28

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Vijayalakshmi
Occasional Advisor

Re: HP-UX - "login" binary issue

Hi Arunvijay,

Sorry for the late reply.

I have applied the patch on server 2. Now i am getting correct answer. (#/usr/bin/strings -a /usr/bin/login | egrep -c "^root$" == 6)

Thanks for your help.

Thanks,
Vijayalakshmi.K
Arunvijai_4
Honored Contributor

Re: HP-UX - "login" binary issue

Great to hear, You can assign points and close this thread..

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Vijayalakshmi
Occasional Advisor

Re: HP-UX - "login" binary issue

Thanks for your help.