Task 1 – Automating account creation by using shell scripts.
You have been asked by your boss to set up 100 user accounts for your SLES9 Linux server. Each user account should have the following details:
Login name: userxx
Password: p@Ssxx
UID: 1900+xx
GID: 747 (name of group is IMFDelegates)
Informational name: “Secret Agent xx”
Home directory: /home/agentxx
Login shell: /bin/sh
For example, the first user will have the following details:
Login name: user00
Password: p@Ss00
UID: 1900
GID: 747
Informational name: “Secret Agent 00”
Home directory: /home/agent00
Login shell: /bin/sh
And for example, the last user will have the following details:
Login name: user99
Password: p@Ss99
UID: 1999
GID: 747
Informational name: “Secret Agent 99”
Home directory: /home/agent99
Login shell: /bin/sh
Notify your lecturer once you have successfully created the 100 user accounts. You will then be required to demonstrate the successful login of some randomly selected accounts.
Note: You will need to create a shell script to automate this task. You can make use of the groupadd and useradd scripts inside your shell script. You can also use the mkpass command to create the encrypted passwords.
Anyone can help me with this??Thanks

