{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18495","labels_url":"https://api.github.com/repos/owncloud/core/issues/18495/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18495/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18495/events","html_url":"https://github.com/owncloud/core/issues/18495","id":102617716,"number":18495,"title":"cron.php - checking for owner of config/config.php is not a reliable way to find owner of web server process","user":{"login":"Kerrnel","id":1814909,"avatar_url":"https://avatars.githubusercontent.com/u/1814909?v=3","gravatar_id":"","url":"https://api.github.com/users/Kerrnel","html_url":"https://github.com/Kerrnel","followers_url":"https://api.github.com/users/Kerrnel/followers","following_url":"https://api.github.com/users/Kerrnel/following{/other_user}","gists_url":"https://api.github.com/users/Kerrnel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kerrnel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kerrnel/subscriptions","organizations_url":"https://api.github.com/users/Kerrnel/orgs","repos_url":"https://api.github.com/users/Kerrnel/repos","events_url":"https://api.github.com/users/Kerrnel/events{/privacy}","received_events_url":"https://api.github.com/users/Kerrnel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-23T13:25:08Z","updated_at":"2015-08-23T14:24:01Z","closed_at":null,"body":"cron.php reported \r\n\r\nconsole has to be executed with the same user as the web server is operated\r\nCurrent user: www\r\nWeb server user: cfgfowner\r\n\r\nHaving a different owner of config.php (and having it www-group-writable) is valid - yet causes cron.php to break due to this method.\r\n\r\nBetter:\r\n\r\n$processUser = posix_getpwuid(posix_geteuid());\r\nprint $processUser['name'];"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/133851111","html_url":"https://github.com/owncloud/core/issues/18495#issuecomment-133851111","issue_url":"https://api.github.com/repos/owncloud/core/issues/18495","id":133851111,"user":{"login":"RealRancor","id":2248459,"avatar_url":"https://avatars.githubusercontent.com/u/2248459?v=3","gravatar_id":"","url":"https://api.github.com/users/RealRancor","html_url":"https://github.com/RealRancor","followers_url":"https://api.github.com/users/RealRancor/followers","following_url":"https://api.github.com/users/RealRancor/following{/other_user}","gists_url":"https://api.github.com/users/RealRancor/gists{/gist_id}","starred_url":"https://api.github.com/users/RealRancor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealRancor/subscriptions","organizations_url":"https://api.github.com/users/RealRancor/orgs","repos_url":"https://api.github.com/users/RealRancor/repos","events_url":"https://api.github.com/users/RealRancor/events{/privacy}","received_events_url":"https://api.github.com/users/RealRancor/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T14:24:01Z","updated_at":"2015-08-23T14:24:01Z","body":"Probably a dup of https://github.com/owncloud/core/issues/18470"}}