Under SunOS 4.1.2 with patched rpc.yppasswdd:
We're expecting lots of people to try to change their passwords when
they get back in the fall. If two people try to change their password
within a relatively short period of time (with yppasswd), an error
message, stating that the password file is "busy", is produced.
The yppasswd() library routine returns 0 on success, according to
yppasswd(3). How about on failure? How is yppasswd(1) able to
distinguish between a "busy" password file and an incorrect password
error? How does rpc.yppasswdd lock the password file? I've traced it
and seen it create and then remove /etc/ptmp--is this it? I've also
gotten the password file busy message after /etc/ptmp has been
removed. Do all of the programs in the NIS Makefile that read from
the password file also use /etc/ptmp?
Finally, I'm sure other sites have had problems with many users trying
to change their password at once. One solution I've thought of is to
create some sort of server application that has exclusive access to
the password file (and is the only program that will ever do a make in
/var/yp) but this doesn't seem like a good solution.
Any advice is welcome. Please answer via email; if there is interest,
I'll summarize responses.
Matt