Question: Create a bash script to automatically add users in the system from a file called userlist. The userlist file will contain a list of usernames

Create a bash script to automatically add users in the system from a file called userlist.

The userlist file will contain a list of usernames as below...

testuser1

testuser2

testuser3

All new users must have their own home directory and their default shell must be bash.

All new users' password will be "tos 1141". When a new user first logs in, they must be prompted to change their password.

 Create a bash script to automatically add users in the system

Create a bash script to automatically add users in the system from a file called userlist. The userlist file will contain a list of usernames as below... All new users must have their own home directory and their default shell must be bash. All new users' password will be "tos 1141 ". When a new user first logs in, they must be prompted to change their password

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!