salt stack - Saltstack create user : password is not set -
I am trying to automate my users with the salta stack.
I created a column:
User: Homer: Full Name: Homer Simpson UID: 1007 GID: 1007 Group: - Sudo - Ed Crypt: $ 6H7kNJefhBeY pub_ssh_keys: - ssh -rsa ...
And in my state I use the following:
User creation is fine, SSH RSA key is properly added but my main issue is with password I have tried the following:
crypt: password crypt: some-hash
But when I connect to my server, I have this user There is a wrong password problem for.
Can you tell me how to prepare a good password in accordance with the format of salt? Is there a special order to use to make it?
Thank you.
To create a hashed user password in Debian / Ubuntu, I use the following in salt, I do the following :
apt-get install makepasswd echo '& lt; Password & gt; | Makepoked - ScalarForm = - --crypt-md5 | This example gives an example: $ id $ salt $ is encrypted "$ id $ salt $ encrypted" should be id1,
this also works for you.
Comments
Post a Comment