{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/7821","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/7821/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/7821/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/7821/events","html_url":"https://github.com/meteor/meteor/pull/7821","id":179336854,"number":7821,"title":"Meteor should check if is running as root and prevent it on Unix","user":{"login":"mhidou","id":4815982,"avatar_url":"https://avatars.githubusercontent.com/u/4815982?v=3","gravatar_id":"","url":"https://api.github.com/users/mhidou","html_url":"https://github.com/mhidou","followers_url":"https://api.github.com/users/mhidou/followers","following_url":"https://api.github.com/users/mhidou/following{/other_user}","gists_url":"https://api.github.com/users/mhidou/gists{/gist_id}","starred_url":"https://api.github.com/users/mhidou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhidou/subscriptions","organizations_url":"https://api.github.com/users/mhidou/orgs","repos_url":"https://api.github.com/users/mhidou/repos","events_url":"https://api.github.com/users/mhidou/events{/privacy}","received_events_url":"https://api.github.com/users/mhidou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-26T21:04:42Z","updated_at":"2016-09-27T23:29:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/meteor/meteor/pulls/7821","html_url":"https://github.com/meteor/meteor/pull/7821","diff_url":"https://github.com/meteor/meteor/pull/7821.diff","patch_url":"https://github.com/meteor/meteor/pull/7821.patch"},"body":"Hi,\r\n\r\nThis is a solution for #7631\r\n\r\n```\r\n$ sudo meteor\r\n\r\nIt seems that you are running meteor as root, if you really know what you are\r\ndoing, add the unsafe-perm flag.\r\n\r\nmeteor --unsafe-perm <command>\r\n\r\n```\r\n```\r\n$ sudo meteor --unsafe-perm\r\n\r\nYou are running meteor as root, don't forget to chown your .meteor directory\r\nback to yourself.\r\n\r\nchown -Rh <username> ~/.meteor\r\n\r\n...\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/250028907","html_url":"https://github.com/meteor/meteor/pull/7821#issuecomment-250028907","issue_url":"https://api.github.com/repos/meteor/meteor/issues/7821","id":250028907,"user":{"login":"abernix","id":841294,"avatar_url":"https://avatars.githubusercontent.com/u/841294?v=3","gravatar_id":"","url":"https://api.github.com/users/abernix","html_url":"https://github.com/abernix","followers_url":"https://api.github.com/users/abernix/followers","following_url":"https://api.github.com/users/abernix/following{/other_user}","gists_url":"https://api.github.com/users/abernix/gists{/gist_id}","starred_url":"https://api.github.com/users/abernix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abernix/subscriptions","organizations_url":"https://api.github.com/users/abernix/orgs","repos_url":"https://api.github.com/users/abernix/repos","events_url":"https://api.github.com/users/abernix/events{/privacy}","received_events_url":"https://api.github.com/users/abernix/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T23:29:23Z","updated_at":"2016-09-27T23:29:23Z","body":"This PR is a step in the right direction (and likely still merge-able without this consideration), but this also raises some other concerns about the way Meteor runs its `npm install` commands internally since currently, if the `meteor` tool was run as `root` (again, not recommended), `--unsafe-perm` wouldn't be used\r\n\r\n@mitar, I'm curious if you've experienced issues with this in your Docker builds already (and a bit surprised if you haven't!)\r\n\r\nPerhaps once this is implemented, it would be ideal to let this argument through to the NPM installing functions accordingly."}}
{"actor":{"display_login":"abernix"}}