User creation script

Ashley M. Kirchner ashley at pcraft.com
Thu Apr 26 00:38:49 UTC 2007


    Anyone have pointers (or examples) of a script that can be used to 
create new users and set their password at the same time?  I need 
something I can call like so:

    script USERNAME PASSWORD

    ...and have it return 1 or 0 for failure or success.

    This is going to be used by another application with the arguments 
USERNAME and PASSWORD passed to it.  And this will also be running 
through sudo (from some protected area.)





More information about the fedora-list mailing list