Generate a password on SUSE or SLES

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`

Share Post :

Leave a Reply