Linux script learning ---- batch create user logon script

 

Problem Description:

Create five users can log on Linux systems, and unified set the initial password is: redhat

Implementation steps:

(1) create a users.txt user in your script directory user record you need to create, easy to script reads NAME variable. Note: users.txt and you must

     users_add.sh on the same directory.

(2) to write the script

        

 

(3) the results of test execution

        

 

 The user has successfully created, the task is completed.

 

Guess you like

Origin www.cnblogs.com/cloud-yongqing/p/11569937.html