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

add staging and cleanup operations before/after all config checks are evaluated #164

Open
kristovatlas opened this issue Sep 17, 2016 · 0 comments

Comments

@kristovatlas
Copy link
Owner

kristovatlas commented Sep 17, 2016

Staging operation examples:

  • Check if user is in sudoers (sudo -vn 2>&1 >/dev/null | grep -c "a password is required"):
    • If the user is in suduoers, this will return '1'
    • If the user is not in sudoers, this will return '0'
  • Explain what sudo does and ask if user would like to grant this privilege. If yes, explain that the app is about to prompt the user for his OS X user's password. Also, explain to him that he won't be able to see "*"'s as they type in the password -- one user who had never used sudo before found this confusing.

Cleanup operations

  • Clear sudo state (sudo -k)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant