Hiya Monks,
I have a script that generates random passwords, and creates user accounts based on the information that the user inputs + the random password. i.e
adduser mychosenusername -p mygeneratedpassword
It has just been brought to my attention that the -p switch on the adduser command requires an encrypted password.
would someone please be able to show me (in idiots terms) how to take a variable i.e $genpass , with the password generated by my script, and encrypt it into something that i will then be able to pass to the adduser -p command?
thanks