Batch Manage User Scripts

So now again a demand, we need only to create and delete users on a server above. And sometimes it creates multiple users. About delete multiple users. How do we do it? Honest useradd? Then passwd?

This is impossible! I refuse such work.

Then we look at this new script, ha ha ha ha ha ha!

 
 
 

Create multiple users, and the same user name and password!

Let's look at delete it:

 
 

Haha Not bad, is mainly adapted into many directions, the script is very simple about 60 lines of code. Interested can refer to Oh!

No public attention and reply: user script  get the script

Guess you like

Origin www.cnblogs.com/devops-ITboge/p/12041059.html