tool generate mujltiple (thousands ) of accounts in /etc/passwd and /etc/shadow, solaris 9

From: Angel Alejandro Vega Soto (alejandro.vega_at_tecinfocon.com.mx)
Date: 09/28/05

  • Next message: Tony Magtalas: "SUMMARY: How to set up a boot server in Solaris 2.8 ?"
    To: Sunmanagers <sunmanagers@sunmanagers.org>
    Date: Wed, 28 Sep 2005 12:11:08 -0500
    
    

    hello, I have a requirement which I think some of you may solved many
    times, so I ask your help.

    I have in my possesion a spredsheat with all the users that must be
    updated to a new server, there are over 10,000. and would like to
    automatize the process with a simple script.

    I have one that makes the entries in the /etc/passwd , the format of the
    spreadshet is something like this.

    companyid,"completename","non-encripted password","loginname","other
    field"

    the double quotes can be easyly be removed by the same spread***, but
    the corresponding password can not be set using solaris passwd utility.

    the script I have is very simple, and is used to affect the /etc/passwd
    directly
    the uid value is used for the last uid entry.

    #cat file.csv | awk -F, -v uid=2170 '{print$4":x:"uid+
    +":101:"$2":/export/home/"$4":/bin/false" }'

    any help, or examples :D for creating and sync the password with the
    user, also if you have any tool for removing invalid caracters like
    spaces, *, ? in the passwd file would be great.

    thanks in advance! this was asked in very short notice.

    -- 
    Angel Alejandro Vega Soto <alejandro.vega@tecinfocon.com.mx>
    TecnologC-a InformC!tica y ConsultorC-a
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    

  • Next message: Tony Magtalas: "SUMMARY: How to set up a boot server in Solaris 2.8 ?"