Results 1 to 10 of 20
Hi people, i'm in need of serious help asap in regard of creating multiple user account like for example of 100 user account using loops in a script to create. ...
- 05-30-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 11
How to create multiple user accounts using loops in scripts for suse linux
Hi people, i'm in need of serious help asap in regard of creating multiple user account like for example of 100 user account using loops in a script to create. Can anyone help me asap. Thanks.
- 05-30-2007 #2Linux Newbie
- Join Date
- Apr 2007
- Posts
- 117
- 05-30-2007 #3Just Joined!
- Join Date
- May 2007
- Posts
- 11
sorry, i'm totally new to suse linux, actually basically i have not much idea of where i should put the above code at, can u give me a more detailed idea, i'll appreciate it alot if you could like teach me more about it. Thanks alot
- 05-30-2007 #4Linux Newbie
- Join Date
- Apr 2007
- Posts
- 117
1. Copy all the above code with "Ctrl+C"
2. Open the terminal window and execute "su" then enter the root password
3. Then press "Shift+Ins" in order to paste the copied code
4. Wait ......
5. That's it, the script will create for you 100 accounts.Ubuntu 8.04 [32bit] @ Gateway MX6453 Notebook
- 05-30-2007 #5Just Joined!
- Join Date
- May 2007
- Posts
- 11
oh thanks alot i will be trying in a moments time, but i still got some query, what would the username be, because the command donesnt have any names e.g. "user0" to "user99", how would the username turn out to be?and aftermath of everything then i set the password is it ?
- 05-30-2007 #6Linux Newbie
- Join Date
- Apr 2007
- Posts
- 117
- 05-30-2007 #7Just Joined!
- Join Date
- May 2007
- Posts
- 11
for i in `seq 1 100`;
do
useradd user$i
i get an error
-bash: syntax error near unexpected token 'seq 1 100';
firstly i can get to paste in from this forum into the VMWARE
then afterwards i get that error, wat's wrong with it.
sorry if i ask too much but i need help haha.thanks
- 05-30-2007 #8Linux Newbie
- Join Date
- Apr 2007
- Posts
- 117
- 05-30-2007 #9Just Joined!
- Join Date
- May 2007
- Posts
- 11
kk, i'll be waiting to hear an reply from you. Thanks alot.
- 05-30-2007 #10Just Joined!
- Join Date
- May 2007
- Posts
- 11
right now i having a problem which is that when i type all the code in, i having tis error message which says "mkdir: '/home/student/Documents/user' exists but it is not a directory
useradd:User 'user99' already exists", i do see all the users in my /etc/passwd but just that what actually the error message is trying to meant ?


Reply With Quote
