{"action":"created","issue":{"url":"https://api.github.com/repos/alaska/deadman/issues/4","labels_url":"https://api.github.com/repos/alaska/deadman/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/alaska/deadman/issues/4/comments","events_url":"https://api.github.com/repos/alaska/deadman/issues/4/events","html_url":"https://github.com/alaska/deadman/issues/4","id":73467485,"number":4,"title":"Should check for necessary access","user":{"login":"alaska","id":926884,"avatar_url":"https://avatars.githubusercontent.com/u/926884?v=3","gravatar_id":"","url":"https://api.github.com/users/alaska","html_url":"https://github.com/alaska","followers_url":"https://api.github.com/users/alaska/followers","following_url":"https://api.github.com/users/alaska/following{/other_user}","gists_url":"https://api.github.com/users/alaska/gists{/gist_id}","starred_url":"https://api.github.com/users/alaska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaska/subscriptions","organizations_url":"https://api.github.com/users/alaska/orgs","repos_url":"https://api.github.com/users/alaska/repos","events_url":"https://api.github.com/users/alaska/events{/privacy}","received_events_url":"https://api.github.com/users/alaska/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-06T00:01:51Z","updated_at":"2015-05-08T08:59:44Z","closed_at":null,"body":"In keeping with the zero-surprises mode of thinking, deadman should detect, at startup, whether or not it is capable of shutting down. On *nix systems, this means checking whether or not it has superuser access.  On windows, further research is required."},"comment":{"url":"https://api.github.com/repos/alaska/deadman/issues/comments/100161423","html_url":"https://github.com/alaska/deadman/issues/4#issuecomment-100161423","issue_url":"https://api.github.com/repos/alaska/deadman/issues/4","id":100161423,"user":{"login":"alaska","id":926884,"avatar_url":"https://avatars.githubusercontent.com/u/926884?v=3","gravatar_id":"","url":"https://api.github.com/users/alaska","html_url":"https://github.com/alaska","followers_url":"https://api.github.com/users/alaska/followers","following_url":"https://api.github.com/users/alaska/following{/other_user}","gists_url":"https://api.github.com/users/alaska/gists{/gist_id}","starred_url":"https://api.github.com/users/alaska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaska/subscriptions","organizations_url":"https://api.github.com/users/alaska/orgs","repos_url":"https://api.github.com/users/alaska/repos","events_url":"https://api.github.com/users/alaska/events{/privacy}","received_events_url":"https://api.github.com/users/alaska/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T08:59:44Z","updated_at":"2015-05-08T08:59:44Z","body":"In order to figure out exactly which calls to make, I'll need to not only know which DLLs are involved, but also the permission names/UUIDs and such that are involved. If you can point me in the right direction of finding out if a given user has shutdown privileges, it would be much appreciated.  All I know as of now is that the local security policy of a windows box can restrict it.  As to how to check... not there yet."}}