Operating System - HP-UX
1825756 Members
2341 Online
109687 Solutions
New Discussion

Re: Problems after migrating NIS-Domain

 
Günther Pott
New Member

Problems after migrating NIS-Domain

We are moving our NIS master server from an old HP-UX 11.00 server to a new HP-UX 11.23 server.
All other servers have locale NIS slave servers and local NIS clients.

First everything was looking OK, but then we noticed that we could not distribute any changes to the NIS-clients.


These are the changes i did on the new nis master "adm":

I changed the home-directory of the user "fwtest" from /users/l143/wille to /users/admin/wille:
# cat /etc/passwd | grep fwtest
fwtest:6zmYp3MRFEGic:478:50:Testuser,,,,90:/users/admin/wille:/bin/sh

I created a new user "fwtst":
# cat /etc/passwd | grep fwtst
fwtst:6zmYp3MRFEGic:734:50:Testuser,,,,90:/users/h01/fwtst:/bin/sh

I created a new group and made user "wille" a member of this group
# cat /etc/group | grep nistest
nistest::998:wille


Some HP-UX Client ( e.G. for2) don´t recognize these changes:

for2 wille:/users/h01/wille :cd ~fwtest
newcd[2]: /users/l143/fwtest: not found

for2 wille:/users/h01/wille :su - fwtst
Password:
su: Unknown id: fwtst

for2 wille:/users/h01/wille :id
uid=455(wille) gid=100(kdt) groups=348(cs_sa),480(rusers),998(),70(gei),406(infosys),43(httpd),77(opcgrp),329(web)


But when I look at the NIS maps at the client "for2" , all information seems to be ok:

for2 wille:/users/h01/wille :ypcat passwd | grep fwtest
fwtest:6zmYp3MRFEGic:478:50:Testuser,,,,90:/users/admin/wille:/bin/sh

for2 wille:/users/h01/wille :ypcat passwd | grep fwtst
fwtst:6zmYp3MRFEGic:734:50:Testuser,,,,90:/users/h01/fwtst:/bin/sh

for2 wille:/users/h01/wille :ypcat group | grep nistest
nistest::998:wille


for2 wille:/users/h01/wille :ypwhich -m
passwd.byname adm3
ypservers adm3
servi.bynp adm3
auto.master adm3
group.bygid adm3
publickey.byname adm3
services.byname adm3
rpc.bynumber adm3
protocols.bynumber adm3
protocols.byname adm3
passwd.byuid adm3
netid.byname adm3
networks.byname adm3
networks.byaddr adm3
netgroup.byuser adm3
netgroup.byhost adm3
rpc.byname adm3
hosts.byname adm3
hosts.byaddr adm3
group.byname adm3
netgroup adm3

for2 wille:/users/h01/wille :nsquery passwd fwtst

Using "compat" for the passwd policy.

Searching compat for fwtst
User name: fwtst
User Id: 734
Group Id: 50
Gecos: Testuser,,2974,,90
Home Directory: /users/h01/fwtst
Shell: /bin/sh

Switch configuration: Terminates Search

for2 wille:/users/h01/wille :nsquery group nistest

Using "compat" for the group policy.

Searching compat for nistest
Group name: nistest
Group Id: 998
Group membership: wille
Switch configuration: Terminates Search


Seems to be a problem of the NIS-Client process or the user look up
This problem is on all older HP-UX NIS-Client-Server including HP-UX version 11.00 , 11.11 and 11.23
Newer HP-UX 11.23 Server ( about 1 year old ) and all Red Hat EL3 and EL4 Servers don´t have this problem.


I booted one HP-UX 11.00 System. After booting, everything was OK.
Because we cannot boot all our systems, I want to know what process needs to be restarted to fix this problem.
1 REPLY 1
Günther Pott
New Member

Re: Problems after migrating NIS-Domain

Hi,

restart of the pwgrd daemon seems to fix the problem:

/sbin/init.d/pwgr stop
/sbin/init.d/pwgr start


guenther