{"action":"created","issue":{"url":"https://api.github.com/repos/whefter/puppet-syncthing/issues/9","repository_url":"https://api.github.com/repos/whefter/puppet-syncthing","labels_url":"https://api.github.com/repos/whefter/puppet-syncthing/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/whefter/puppet-syncthing/issues/9/comments","events_url":"https://api.github.com/repos/whefter/puppet-syncthing/issues/9/events","html_url":"https://github.com/whefter/puppet-syncthing/pull/9","id":150345423,"number":9,"title":"Use sudo instead of su","user":{"login":"amateo","id":3133951,"avatar_url":"https://avatars.githubusercontent.com/u/3133951?v=3","gravatar_id":"","url":"https://api.github.com/users/amateo","html_url":"https://github.com/amateo","followers_url":"https://api.github.com/users/amateo/followers","following_url":"https://api.github.com/users/amateo/following{/other_user}","gists_url":"https://api.github.com/users/amateo/gists{/gist_id}","starred_url":"https://api.github.com/users/amateo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amateo/subscriptions","organizations_url":"https://api.github.com/users/amateo/orgs","repos_url":"https://api.github.com/users/amateo/repos","events_url":"https://api.github.com/users/amateo/events{/privacy}","received_events_url":"https://api.github.com/users/amateo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-22T11:35:43Z","updated_at":"2016-05-03T20:49:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/whefter/puppet-syncthing/pulls/9","html_url":"https://github.com/whefter/puppet-syncthing/pull/9","diff_url":"https://github.com/whefter/puppet-syncthing/pull/9.diff","patch_url":"https://github.com/whefter/puppet-syncthing/pull/9.patch"},"body":"This change uses sudo instead of su. I made because in my system su does not work because the user does not have a valid shell. With sudo you don't need a valid shell to run a command.\r\nBesides this, I thing that sudo is a better option than su."},"comment":{"url":"https://api.github.com/repos/whefter/puppet-syncthing/issues/comments/216660059","html_url":"https://github.com/whefter/puppet-syncthing/pull/9#issuecomment-216660059","issue_url":"https://api.github.com/repos/whefter/puppet-syncthing/issues/9","id":216660059,"user":{"login":"invidian","id":16539896,"avatar_url":"https://avatars.githubusercontent.com/u/16539896?v=3","gravatar_id":"","url":"https://api.github.com/users/invidian","html_url":"https://github.com/invidian","followers_url":"https://api.github.com/users/invidian/followers","following_url":"https://api.github.com/users/invidian/following{/other_user}","gists_url":"https://api.github.com/users/invidian/gists{/gist_id}","starred_url":"https://api.github.com/users/invidian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invidian/subscriptions","organizations_url":"https://api.github.com/users/invidian/orgs","repos_url":"https://api.github.com/users/invidian/repos","events_url":"https://api.github.com/users/invidian/events{/privacy}","received_events_url":"https://api.github.com/users/invidian/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T20:49:12Z","updated_at":"2016-05-03T20:49:12Z","body":"+1 for that, I was affected too. And I think it's a good idea, because usually, daemon users login is permitted with `/bin/nologin` or `/bin/false`. And if someone wants to run  `syncthing` normal user, this change will not affect them."}}