Change user password through BASH script

Published on Author gryzliLeave a comment

Very often I need to automate some bulk user password change.

In the following examples we have:

$user as username

$pass as password in plain text

Currently these are the methods I use to change user passwords:

chpasswd method

The old passwd method

 

Also I use the following to GENERATE RANDOM passwords:

The good /dev/urandom

Using pwgen

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha * Time limit is exhausted. Please reload CAPTCHA.