{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/612","repository_url":"https://api.github.com/repos/deployphp/deployer","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/612/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/612/events","html_url":"https://github.com/deployphp/deployer/issues/612","id":146705478,"number":612,"title":"[Feature] Add writable users","user":{"login":"gperdomor","id":371939,"avatar_url":"https://avatars.githubusercontent.com/u/371939?v=3","gravatar_id":"","url":"https://api.github.com/users/gperdomor","html_url":"https://github.com/gperdomor","followers_url":"https://api.github.com/users/gperdomor/followers","following_url":"https://api.github.com/users/gperdomor/following{/other_user}","gists_url":"https://api.github.com/users/gperdomor/gists{/gist_id}","starred_url":"https://api.github.com/users/gperdomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gperdomor/subscriptions","organizations_url":"https://api.github.com/users/gperdomor/orgs","repos_url":"https://api.github.com/users/gperdomor/repos","events_url":"https://api.github.com/users/gperdomor/events{/privacy}","received_events_url":"https://api.github.com/users/gperdomor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deployphp/deployer/labels/discuss","name":"discuss","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T18:22:34Z","updated_at":"2016-04-08T06:59:58Z","closed_at":null,"body":"| Q                 | A\r\n| ----------------- | ---\r\n| Issue Type        | Feature\r\n| Deployer Version  | 4\r\n| Local Machine OS  | N/A\r\n| Remote Machine OS | N/A\r\n\r\n### Description \r\nPlease, add an option to set which users have write permissions in the <code>writable_dirs</code>.\r\n\r\nUse case:\r\n    - The web server user is 'UserA'\r\n    - You deploy using 'userB' because is the only user with permissions to connect over ssh.\r\n    - You have an FTP user 'UserC'.\r\n\r\nWith the current option, you can't set permission for UserC.\r\n\r\nThis options should be per server, so every server can use different users.\r\n\r\nI also notice that deployer use:\r\n<code>ps **aux** | grep -E '[a]pache|[h]ttpd|[\\_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\\  -f1</code>\r\n\r\nAnd Symfony Docs use <code>ps **axo user,comm** | grep -E '[a]pache|[h]ttpd|[\\_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\\  -f1</code>\r\n\r\nIn my case, the first command (the deployer one) determine an incorrect user..."},"comment":{"url":"https://api.github.com/repos/deployphp/deployer/issues/comments/207258857","html_url":"https://github.com/deployphp/deployer/issues/612#issuecomment-207258857","issue_url":"https://api.github.com/repos/deployphp/deployer/issues/612","id":207258857,"user":{"login":"elfet","id":141232,"avatar_url":"https://avatars.githubusercontent.com/u/141232?v=3","gravatar_id":"","url":"https://api.github.com/users/elfet","html_url":"https://github.com/elfet","followers_url":"https://api.github.com/users/elfet/followers","following_url":"https://api.github.com/users/elfet/following{/other_user}","gists_url":"https://api.github.com/users/elfet/gists{/gist_id}","starred_url":"https://api.github.com/users/elfet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfet/subscriptions","organizations_url":"https://api.github.com/users/elfet/orgs","repos_url":"https://api.github.com/users/elfet/repos","events_url":"https://api.github.com/users/elfet/events{/privacy}","received_events_url":"https://api.github.com/users/elfet/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T06:59:58Z","updated_at":"2016-04-08T06:59:58Z","body":"Yes, this command was copied from symphony docs, if they updated it, so can we. "}}