Yes! It is not a big deal to add multiple accounts by using Bash Shell.
We can do it by:
#for x in aaa bbb ccc;do useradd $x; done
This command will add three users accounts : aaa, bbb, and ccc with no password.
What is your next move? Assigning password to each user by:
#passwd aaa
#passwd bbb
#passwd ccc
Three accounts is ok. How about adding 50 accounts? Will you repeat the same procedure to assign password for each account? It will be a time-consuming job. Here is the solution:
As you see, it will create three user accounts with default password "password"
My Motto - "Be Lazy In Outstanding Ways"
No comments:
Post a Comment