Generate a password on SUSE or SLES

Posted in: Bailey's Blog- Aug 31, 2012 No Comments

Since SLES doesn’t have gpw or pwgen available I enhanced a bash snippet I found to create a pseudo random password.

Here it is – enjoy!

DATABASE_NAME=`cat /dev/urandom | base64 | tr -d ‘[:punct:]‘ | tr -d ‘[:digit:]‘ | tr -d ‘[:upper:]‘ | cut -c1-10 | head -1`

No Responses to “Generate a password on SUSE or SLES”

Leave a Reply