[X-Unix] Creating users with the command line

Craig craig at craigwdesigns.com
Tue Oct 12 22:26:37 PDT 2004


On Oct 12, 2004, at 7:40 PM, Eugene wrote:

> On Tue, Oct 12, 2004 at 06:25:46PM -0500, Eric Crist wrote:
> :
> : On Oct 12, 2004, at 2:14 AM, Eugene wrote:
> :
> : >On Tue, Oct 12, 2004 at 08:50:23AM +0200, Steffen Lund Hokland 
> wrote:
> : >:
> : >: I have no idea about Apache whatsoever, but FINK has a package 
> called
> : >: userutils, with the 'normal' UNIX commands for adding and removing
> : >: users.
> : >
> : >There is no "normal" (i.e. "standard") Unix commands for
> : >adding/removing users.  *BSD use "adduser".  Linux distros use
> : >useradd.  Pick your poison.
> :
> : Actually, IIRC, both adduser and useradd are simply shell scripts to
> : the pw command.  The pw command (not distributed with Mac OS X) 
> handles
> : all of the fields in a standard password file, and can deal with 
> shadow
> : files as well.
>
> On FreeBSD, adduser(8) is a Perl script, but it doesn't invoke pw(8).
> On Linux, useradd(8) is a binary and there is no pw command (unless it
> comes from some additional package).
>

& the one that fink installs has evidently been edited for OS X;
it emulates the useradd command by calling nidump & niutil.

- Craig



More information about the X-Unix mailing list