APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Add users

© December 2004 (various authors)

What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):

Newsgroups: comp.unix.sco.misc
From: steved@united.ussinc.com (Steve Dunn)
Subject: Re: add user from command line
Date: Thu, 23 Nov 2000 15:40:09 GMT
Message-ID: <G4HI6y.2KF@united.ussinc.com>
References: <974808294.25123.0.nnrp-07.d4f07c96@news.demon.co.uk>

In article <974808294.25123.0.nnrp-07.d4f07c96@news.demon.co.uk> "Demon" <markr@bluecap.co.uk> writes:
$Does anyone know how to add a user from the command line ?

   I'm sure there are other ways to skin this cat, but here's one
that will work (since you didn't say anything at all about what
version of what operating system you might be using, I'm assuming
it's OpenServer Release 5; this answer may or may not work for
other OSes).

   A small, simple shell wrapper around the addxusers command
would do it.  Addxusers is really intended as a tool for migrating
from Xenix; you feed it a file in the format of /etc/passwd and it
creates the users listed in that file.

   So your shell script would need to get the new user information
from you (which you could do using command-line arguments),
turn it into a passwd-style file, then feed it to addxusers.
Stephen M. Dunn (SD313), CNE, ACE                          steved@ussinc.com
Senior Manager                                  United System Solutions Inc.
20 Adelaide Street East, 5th Floor, Toronto, ON, Canada  (416) 367-1070 x251

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> add users ––>Re: add user from command line

Inexpensive and informative Apple related e-books:

Take Control of Preview

Take Control of Automating Your Mac

Photos for Mac: A Take Control Crash Course

Are Your Bits Flipped?

Take Control of Upgrading to El Capitan

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

One day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" (Larry Wall)

Linux posts

Troubleshooting posts

This post tagged:


Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode

SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)