0

if the script was useradd ...............<new_user>; passwd <new_user>;. is there a way to put the new password in a script? I don't need to change or add an old password for an existing user. I need to enter a brand new password twice when prompted.

dbruceh
  • 33
  • 3

1 Answers1

1

openssl rand -base64 8 | passwd --stdin <new user>

BDN
  • 341
  • 2
  • 14