LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to create many user accounts using suse linux? (https://www.linuxquestions.org/questions/linux-general-1/how-to-create-many-user-accounts-using-suse-linux-452828/)

uthinkicare 06-08-2006 09:17 AM

how to create many user accounts using suse linux?
 
hi guys, any1 knows how to create alot of user accounts using suse linux? do i have to create a shell script?


thanks in advance...

uthinkicare 06-08-2006 12:45 PM

up................

bathory 06-08-2006 12:57 PM

You can use newusers. Read the man page to see how you must format the input file.

uthinkicare 06-08-2006 11:18 PM

Quote:

Originally Posted by bathory
You can use newusers. Read the man page to see how you must format the input file.


yah i know how to creat a user accounts. but right now, i have to create 10k user accounts. so i was wondering is there any method to create them?

DeusExLinux 06-08-2006 11:50 PM

one by one.

10k seems a bit excessive! Do you work for a large company? If so, I would recommend hiring a lacky to do this for you, as it can get tedious.

As to your question, I don't know if there's really way to do this in bulk.

homey 06-09-2006 12:31 AM

If the OP took the time to read what bathory said, the command: newusers file.txt may do the trick.
You put info into a file which looks like the /etc/password file. This uses plain passwords in the file and are in the field next to the user name.
Code:

sue:bpkc-100es:500:500::/home/sue:/bin/bash
tom:bpkc-100es:500:500::/home/tom:/bin/bash
fred:bpkc-100es:500:500::/home/fred:/bin/bash
joe:bpkc-100es:500:500::/home/joe:/bin/bash


DeusExLinux 06-09-2006 09:46 AM

Hmm, that seems brilliant, thanks for the info!


All times are GMT -5. The time now is 11:43 PM.