{"action":"created","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/7707","labels_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/7707/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/7707/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/7707/events","html_url":"https://github.com/caskroom/homebrew-cask/issues/7707","id":50473531,"number":7707,"title":"pdftk cask messes up permissions on /usr/local","user":{"login":"albcorp","id":1017090,"avatar_url":"https://avatars.githubusercontent.com/u/1017090?v=3","gravatar_id":"","url":"https://api.github.com/users/albcorp","html_url":"https://github.com/albcorp","followers_url":"https://api.github.com/users/albcorp/followers","following_url":"https://api.github.com/users/albcorp/following{/other_user}","gists_url":"https://api.github.com/users/albcorp/gists{/gist_id}","starred_url":"https://api.github.com/users/albcorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albcorp/subscriptions","organizations_url":"https://api.github.com/users/albcorp/orgs","repos_url":"https://api.github.com/users/albcorp/repos","events_url":"https://api.github.com/users/albcorp/events{/privacy}","received_events_url":"https://api.github.com/users/albcorp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-11-30T22:36:10Z","updated_at":"2015-01-30T19:48:35Z","closed_at":null,"body":"After running\r\n\r\n    brew cask install pdftk\r\n\r\nthe group ownership of '/usr/local' changes from 'admin' to 'wheel', and the group write bit is removed.\r\n\r\nThis is a very serious bug, because it causes the next run of `brew update` to fail in weird and wonderful ways.  The workaround is to recursively set the ownership and group write permission on '/usr/local' and run the brew cleanup commands suggested by brew doctor\r\n\r\n    sudo chown -R root:admin /usr/local\r\n    sudo chmod -R g+wX /usr/local\r\n    cd /usr/local/Library\r\n    git stash\r\n    git clean -d -f\r\n\r\nAfter that Homebrew can be safely updated\r\n\r\nregards\r\n\r\nAndrew"},"comment":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/comments/72259410","html_url":"https://github.com/caskroom/homebrew-cask/issues/7707#issuecomment-72259410","issue_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/7707","id":72259410,"user":{"login":"vitorgalvao","id":1699443,"avatar_url":"https://avatars.githubusercontent.com/u/1699443?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorgalvao","html_url":"https://github.com/vitorgalvao","followers_url":"https://api.github.com/users/vitorgalvao/followers","following_url":"https://api.github.com/users/vitorgalvao/following{/other_user}","gists_url":"https://api.github.com/users/vitorgalvao/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorgalvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorgalvao/subscriptions","organizations_url":"https://api.github.com/users/vitorgalvao/orgs","repos_url":"https://api.github.com/users/vitorgalvao/repos","events_url":"https://api.github.com/users/vitorgalvao/events{/privacy}","received_events_url":"https://api.github.com/users/vitorgalvao/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T19:48:35Z","updated_at":"2015-01-30T19:48:35Z","body":"@jvenator [Fenced code blocks](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks) could help keep the gist more organised, as opposed to having a bunch of commands on the same line, some with `&&`, some not (and why are some between parenthesis?).\r\n\r\nCommenting here because Github does not warn on Gist comments."}}