These scripts (obviously) need to modify the password file /etc/passwd. The
way our system will operate it is quite possible (likely ??) that two or more
people may attempt modification at the same time with erroneous results.
The man page for passwd(4) suggests that adequate locking MUST be performed
but gives no hint of how. There is a file /etc/.pwd.lock which is presumably
used by the passwd command.
Can anybody tell me how passwd uses this file so I can make my scripts
compatible with it. We also need an edit-passwd script which locks the
passwd file before invoking the editor.
Cheers Russell
--
Russell Fulton, Computer Center, University of Auckland, New Zealand.
<rj_f...@aukuni.ac.nz>
--
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Neil W. Rickert, Computer Science <ric...@cs.niu.edu>
Northern Illinois Univ.
DeKalb, IL 60115 +1-815-753-6940