Tuesday, June 18, 2013

UNIX/Linux script to set or update the password for multiple users


Sample users name: dummy1, dummy2, dummy3, dummy4 and dummy5

for counter in {1..5}; do echo "dummy$counter" | passwd dummy$counter --stdin ; done

NOTE: {1..5} syntax will not work in certain shell. But it will work definitely in bash.

1 comment:

oraclehcm said...

Thanks for sharing this informative content which provided me the required information about the latest oracle financials online coaching, We provide low price of fee for on-line coaching. further information visit our site.
Oracle fusion financials training