Generating password

Hi,

I am new to shell scripting,

my requirement is I have to generate password for Users automatically using script and it should send on mail on that particular date using crontab.

how to do this?

you can generate high entropy passwords using openssl.

openssl rand -base64 6

see the openssl man page for more details.