LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   add more than one user in one go ?? (https://www.linuxquestions.org/questions/linux-newbie-8/add-more-than-one-user-in-one-go-698598/)

vikas027 01-20-2009 08:47 AM

add more than one user in one go ??
 
Hi all,

Is there any command or switch option with "useradd" command to add more than one user in a single command.

I can do this with help of a small script, just wondering if there is any other way out.

Regards,
VIKAS

bathory 01-20-2009 09:15 AM

There is a command to do this. Take a look at
Code:

man newusers

jstephens84 01-20-2009 02:51 PM

Quote:

Originally Posted by vikas027 (Post 3415023)
Hi all,

Is there any command or switch option with "useradd" command to add more than one user in a single command.

I can do this with help of a small script, just wondering if there is any other way out.

Regards,
VIKAS

Or you can have some fun and create a batch script that will take a file and run the useradd command and supply all the command the information for the file.

vikas027 03-12-2009 01:10 AM

Hi,

I will prefer working with a shell script than using newusers command.

Thanks bathory


All times are GMT -5. The time now is 03:32 PM.