It is a very time consuming job to create new users and supply passwords frequently.
By the following small script we can easily create multiple users with passwords.
In my example there are 3 users (user1, user2 and user3) but we can take any number.
# for USER in user1 user2 user3
do
useradd $USER
passwd $USER
done
Just hit 'enter' and you will be directly prompted for password for all the three users.
No comments:
Post a Comment