I need to create a new user account with password in more than 200 systems. What will be the easiest way? Is it possible to do this task via bash script or perl script?
Generate the password with perl
Then just use a bash script to call
and check the manpage for the
I would suggest to use ansible if you want to create a user account across a large number of servers. Ofcourse, it's not limited to just user accounts and it's very easy to get setup and started with using ansible. The documentation is quite nice!
All you do is add all your 200 servers into an inventory file and run a simple command to create all the accounts. Take a look at this example of adding a user.