Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 1996 11:50:21 +0300 (EET DST)
From:      Narvi <narvi@haldjas.folklore.ee>
To:        James FitzGibbon <james@nexis.net>
Cc:        ports@FreeBSD.org
Subject:   Re: Creating a user/group ?
Message-ID:  <Pine.BSF.3.91.960809114838.13368B-100000@haldjas.folklore.ee>
In-Reply-To: <Pine.BSI.3.94.960808221756.1651B-100000@bdd.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 8 Aug 1996, James FitzGibbon wrote:

> 
> Is there a preferred or recommended way of creating a user and/or group
> when a ported progra requires one?  I currently use 'chpass -a' to create
> a user and just append a line to the group file (if one doesn't already
> exist) in the majordomo port.  It works, but seems very backward and ugly.

Why not use adduser? If I remember correctly, all the needed data can be 
passed to it on the command line. Alternativly, you could use for example 
expect.

	Sander

> 
> I haven't played with gnu configure yet, but does it allow such function
> in a standardized way ?  If not, are there any other packages to make the
> process foolproof ?
> 
> Also, if a port needs to create a user, is there any way to make it a
> package, or am I out of luck due to the level of system (if not user)
> interaction ?
> 
> --
> j.
> 
> ----------------------------------------------------------------------------
> | James FitzGibbon                                         james@nexis.net |
> | Integrator, The Nexis Group                     Voice/Fax : 416 410-0100 |
> ----------------------------------------------------------------------------
> 
> 



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