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

In bootstrap.ps1, fail immediately unless user has Admin rights #49

Closed
dougireton opened this Issue Nov 11, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@dougireton
Contributor

dougireton commented Nov 11, 2015

We need to check for admin rights and fail immediately if the the script isn't launched in an Admin console on Windows.

Right now we wait until the chef run to fail.

[2015-11-11T11:09:16-08:00] FATAL: Chef::Exceptions::WindowsNotAdmin: chef-client doesn't have administrator privileges on node my_machine.example.com
@dougireton

This comment has been minimized.

Show comment
Hide comment

@dougireton dougireton modified the milestone: 1 Nov 16, 2015

@dougireton dougireton changed the title from Bootstrap script fails too late if user isn't an Admin on Windows to In bootstrap.ps1, fail immediately unless user has Admin rights Nov 23, 2015

johndkraft pushed a commit that referenced this issue Dec 8, 2015

Kraft, John
v1.3.2 - Windows bootstrap cleanup
Check for Admin rights or exit (#49)
Die with errors when they occur (ie: chef-client run, #33)
Use temporary folder under $ENV:TEMP (#56)
Install targeted version of omnitruck ChefDK, idempotently
@dougireton

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Dec 12, 2015

Contributor

Fixed by PR #58

Contributor

dougireton commented Dec 12, 2015

Fixed by PR #58

@dougireton dougireton closed this Dec 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment