>> >> I've been trying to add new users, (I'm logged in as root), and I'm
>> >> getting the message
>> >> "The password and group files are currently locked by another user.
>> >> Please try again later."
>> > Which tool are you using and have you read its man page? For example
>> > the man page for "vipw" states that it uses (left as an exercise to
>> > the reader) as its lock file. I'm sure the man pages for other similar
>> > tools also list their lock files. For another example the man page
>> > for "useradd" states that is uses (left as an exercise to the reader)
>> > as a lock file.
>> I just checked on GNU/Linux, SunOS 4.1.3, and FreeBSD 4.4, and
>> none of the man pages for vipw or adduser or useradd states what
>> its lock file is.
> Argh. On HP-UX they are /etc/passwd.tmp and /etc/ptmp. Same on Solaris
> and IRIX. The man pages from those vendors do say what the lock files
> are. Are you sure about 4.1.3, I recall it mentioning /etc/pmtp ...
You're right; SunOS 4.1.3 man vipw does mention /etc/ptmp; it
doesn't say anything about lock files (just that it sets the
appropriate locks), or what /etc/ptmp is for, and there's no man
page for that file. It is not mentioned in man adduser.