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

Improve sudo user passwd check #72

Closed
uk-bolly opened this issue Jul 26, 2023 · 0 comments
Closed

Improve sudo user passwd check #72

uk-bolly opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@uk-bolly
Copy link
Member

Enhancement []
Summary of Request
The check for the user having a sudo password to ensure users do not get locked out aon later controls fails if the user is root as this does not required sudo

Describe alternatives you've considered
Do not run when user == root
Get the command to run if - ansible_env.SUDO_USER is defined

Suggested Code
conditional for ansible_env.SUDO_USER is defined
This covers off that any super user not just root could have full su permissions so will only run if the playbook being run using a user that requires sudo

@uk-bolly uk-bolly added the enhancement New feature or request label Jul 26, 2023
@uk-bolly uk-bolly self-assigned this Jul 26, 2023
uk-bolly added a commit that referenced this issue Jul 26, 2023
Signed-off-by: Mark Bolwell <[email protected]>
This was referenced Jul 26, 2023
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