Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2002 13:46:50 -0400 (EDT)
From:      "Geoffrey C. Speicher" <geoff@speicher.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   concurrent pw(8) corrupts master.passwd sometimes?
Message-ID:  <Pine.BSF.4.05.10205021326060.41967-100000@speicher.org>

next in thread | raw e-mail | index | archive | help
``Sometimes'' being the operative word.  I am not able to reliably
reproduce it, but it sure does happen.  I don't know for sure that it is
the fault of pw, but that's what I'm trying to determine.

Here's the scenario: a user visits a web site and fills out a form to
create an account with the site.  When they press submit, a record is
inserted into a database table holding their account information.  This
triggers a call to 'pw adduser ...' on the local machine so they have a
home directory to store files and a personal email account.

Usually it works fine, but under some circumstances master.passwd is left
short, sometimes in the middle of a record.  Anyone have any ideas that
might save me some time while I'm looking at the pw sources?  I'm starting
to wonder if I should run 'nohup pw adduser ...'.

(Please CC me on reply.)

Thanks,
Geoff


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10205021326060.41967-100000>