LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to program shell script to automate mass user account creation? (https://www.linuxquestions.org/questions/linux-general-1/how-to-program-shell-script-to-automate-mass-user-account-creation-565325/)

EsAsher 06-29-2007 05:05 AM

How to program shell script to automate mass user account creation?
 
Hi guys,
Im currently using Suse Linux 9.0 and is trying to program a script that automatically creates 100 user accounts with encrypted passwords. An example of an account would be
Login name : User00
password : pass00
UID : 1000
GID : 747
Home dir : /home/user00
Shell : /bin/sh

Isit possible to script such a task? How do i go about doing it?
Sorry guys im new to linux and still learning the ropes and i really need help on this issue. Any help would be apprieciated. THX!

Agrouf 06-29-2007 05:15 AM

There is more than one way to do it.
The adduser and expect commands are there to help you.

XavierP 06-30-2007 08:41 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 11:01 AM.