How to use bash shell to create many users
Hi all, my name is Rick. Iˇ¦m using red hat 9.0
Can somebody show me how to add many accounts by a bash script?
I need to perform the following functions:
1) I have a file called userfile.txt. It contains new usersˇ¦ information. The format is like this:
Username1

assword:groupname:username1 surname1
e.g. Mike:1234:IT:Mike White
John:5732:Accounting:John Smith
ˇKˇK
2) I now need to create a shell script calledˇXmyscript , this script program will read the userfile.txt file and process the user account.
„X To use this program, user must type this command: ˇ§myscript userfile.txtˇ¨. If user does not type in this way, system will display the error messageˇXˇ§you type in wrong way !ˇ¨
„X If people type in myscript ˇVh, system will display some information to the users.