Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 1997 22:21:35 -0500 (CDT)
From:      Tim Tsai <tim@futuresouth.com>
To:        dwhite@resnet.uoregon.edu
Cc:        tim@futuresouth.com, questions@FreeBSD.ORG
Subject:   Re: multi-user adduser
Message-ID:  <199704100321.WAA06433@shell.futuresouth.com>
In-Reply-To: <Pine.BSF.3.96.970409201121.4997H-100000@localhost> from Doug White at "Apr 9, 97 08:12:00 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> >   Does anybody have an adduser script that's multi-user compatible? We
> > need a script where our staff members can run it simultaneously without
> > worrying about UID conflicts, etc.
 
> Editing the password file simultaneously is asking for trouble.  I don't
> think it is possible, as one person will spam the changes another makes.

  Actually we just need to add users.  Only one person (me) would edit
the password file.  I looked at the code some last night and it doesn't
seem too bad.  All we really need is to make sure the UID/GID is unique
which can be done via an external lock file.  The rest of the program
already handles locking, etc. correctly.  Is there anything else I am
missing?

> You have too many people adduser'ing ;)

  Well, it's convenient to be able to add new users while we're on the
phone with them and check for problems.  We add users at multiple
locations so having one person to do it all isn't very practical.

  Our billing software has an Unix interface that would call adduser as
a daemon, actually.  Perhaps it's time for us to install that.

  Thanks,

  Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704100321.WAA06433>