UnixAdminsDiary

Tuesday, May 18, 2004

AIX 4.3: ypcat problems after connection to NIS server lost

Assume that your AIX machine gets passwd via NIS from a NIS server. Assume that the server crashes, that it stays offline a longer time (eg some hours) and, after the server is up again, ypcat passwd on the NIS machine doesnt show the NIS users.
No problem at all, you might think - simple restart the ypbind daemon and everything will be fine.
But - after restarting, you still dont get the desired user list when performing a ypcat passwd.
Ok, if you are a MS Windows approved admin, you will now reboot the AIX machine, but after rebooting, ypcat passwd still doesnt show the NIS users.

AFAIK this is caused because the AIX ypbind doesnt always ask the NIS server. Look at /var/yp/binding - you will find files like your_nis_domain.1 and your_nis_domain.2 there.
Just try the following: stop the ypbind, delete these files, and then, restart ypbind.
Usually, a ypcat passwd should show you the expected user list.
But in most cases, you dont have to do this. It seems theses files are fetchted automatically if they are too old. This means that if you wait long enough, the files become updated and ypcat passwd works right without manual deletion of these files.

0 Comments:

Post a Comment

<< Home