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

Add users


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



Increase ad revenue 50-250% with Ezoic

Kerio Samepage


Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

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