Results 1 to 5 of 5
how to create mltiple users in linux...
- 08-27-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
create mltiple users
how to create mltiple users in linux
- 08-27-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Please explain. Do you mean multiple users at one time, as in adding a number of users in bulk?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 08-29-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 25
Adding multiple user in a single command
you can use simple shell scripting to add multiple user, suppose you hav 3 user "user1,user2,user3" you can use for loop---
for u in user1 user2 user3; do useradd $u; done
- 08-31-2010 #4
And are you using KDE, GNOME, CLI or anyothers?
- 09-01-2010 #5Just Joined!
- Join Date
- Aug 2010
- Posts
- 6
Ans: you can also add multiple user at a time by "newusers "command
write all user names in one file, the file must be in /etc/passwd file format
Example: vim userfile
username
:uid:gid::/home/username:/bin/bash
(in same format u can write all username)
# newusers <filename>
# newusers userfile


Reply With Quote
