Help- Change the password of users to common one

Hi all

I have some 106 users of which i need to change the password of them to a common one. I dont know their paswword. But i need to reset them to a common one. How can i do this with a shell script? It would be a great help if some one can help to sort out this.:b::b:

I know it can be done using passwd command, but its a huge list and can't do it manually typing in the New password. Is there any way to change the password of these many users at a stretch by just passing the username and the password in a loop to the script?

-----Post Update-----

echo $PASS | passwd $USER --stdin

i got it.. :slight_smile:

-----Post Update-----

echo $PASS | passwd $USER --stdin

i got it.. :slight_smile: