creating the users securely

General support questions
Post Reply
knzzz
Posts: 137
Joined: 2017/02/25 12:41:42

creating the users securely

Post by knzzz » 2019/10/20 06:53:53

Hi Team,

I have 3 users and its respective password now my query is how to write a script in such a way if someone read the script should not be able to view (if we did the encryption) the password, need assistance

Regards
Kanna

User avatar
jlehtone
Posts: 2600
Joined: 2007/12/11 08:17:33
Location: Finland

Re: creating the users securely

Post by jlehtone » 2019/10/20 08:33:56

If your script would be for 'ansible', then it would use 'user' module:
https://docs.ansible.com/ansible/latest ... odule.html

Which means the script would store a hashed value:
https://docs.ansible.com/ansible/latest ... ser-module


Those hashed values could be stored in encrypted (i.e. password protected) in a Vault:
https://docs.ansible.com/ansible/latest ... vault.html

However, encrypting a password has is from brute force point of view just a deck of cards that has been shuffled twice; no more shuffled than the hashes.

Post Reply

Return to “CentOS 7 - General Support”