Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically create password for user #8

Open
ScottG489 opened this issue Aug 20, 2020 · 0 comments
Open

Automatically create password for user #8

ScottG489 opened this issue Aug 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ScottG489
Copy link
Owner

Although the user is created, it isn't given a password. The documentation currently instructs the user to manually log in and set the password themselves. However, ansible has the ability to set the password on the user as seen here:

https://docs.ansible.com/ansible/latest/modules/user_module.html#parameter-password

The value of the password should be created using the following command.

openssl passwd -salt abc -1 12345

Where "12345" is the password. The value of the salt can be basically anything. I suppose pick a sufficiently random string but I'm not sure it's too important.

The documentation also currently mentions that you need to log in and manually set the password. This documentation should also be updated. At the time of this writing it can be found here in the README:

https://github.com/ScottG489/machine-setup/blob/master/README.md

@ScottG489 ScottG489 added the enhancement New feature or request label Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant