SUMMARY (UPDATE) : How do I lock the yppasswd master

I have more information on how to lock the yppasswd master file.
Les <leh@manatee.cis.ufl.edu> confirmed a change of the locking
locking mechanism from the earlier OS versions. Thanks Les.

Bill Heelan has made two of his utilities that implement
his "vipw" available. You can pick these up using anonymous ftp on
quiche.cs.mcgill.ca (132.206.2.3). Look in pub/yp. With these files,
you can see how to implement your own locking mechanism.
Thanks Bill.

>I looked into this problem a while back and discovered the following
> - before (from the BSD 4.3 code that I had access to)
> yppasswdd did indeed lock with /etc/ptmp (its hard coded :)
> - as of SunOS 4.0.3, this was not the case+, it used
> YPPASSWDFILE.ptmp to lock
> - using YPPASSWDFILE.ptmp will work for SunOS 4.0.3 and on
> (I am using it right now :)
>
>In short, if you have access to the source for vipw you can compile
>your own ypvipw by changing the appropriate lines at the top of
>vipw.c (at our site the change was
>
>char temp[] = "/etc/ypmaps/passwd.yp.ptmp";
>char passwd[] = "/etc/ypmaps/passwd.yp";
>
>where /etc/ypmaps/passwd.yp is what we invoke rpc.yppasswdd with.)
>
>+Since we have no Sun source, I can't say for certain anymore,
>however, I believe I tried all reasonable combinations.