Shell Scripting Example 1 – Create List of user or multiple user using Bash script

Posted: April 5, 2015 in Create List of User, Shell Script

I want create 20 users or more with password using script

Comment as ” Au-tel Admin”

Shell should “/bin/bash”

Home Directory As “/Au-tel

Password set as “linux@123”

User List  as “/root/userlist”

change a password at first login as “chage -d 0 user”

 

User List:

Vijay, Arun , Karthi ,Suresh ,Lokesh ,Jai,Ragu,Poo

 

List of users

6

 

SCRIPT:

7

 

Execution:

8

 

Test:

9

10

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s