{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/590","labels_url":"https://api.github.com/repos/lxc/lxd/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/590/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/590/events","html_url":"https://github.com/lxc/lxd/issues/590","id":73479219,"number":590,"title":"Invalid tty ownership leads to Operation not permitted on ioctl","user":{"login":"kenokabe","id":1316994,"avatar_url":"https://avatars.githubusercontent.com/u/1316994?v=3","gravatar_id":"","url":"https://api.github.com/users/kenokabe","html_url":"https://github.com/kenokabe","followers_url":"https://api.github.com/users/kenokabe/followers","following_url":"https://api.github.com/users/kenokabe/following{/other_user}","gists_url":"https://api.github.com/users/kenokabe/gists{/gist_id}","starred_url":"https://api.github.com/users/kenokabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenokabe/subscriptions","organizations_url":"https://api.github.com/users/kenokabe/orgs","repos_url":"https://api.github.com/users/kenokabe/repos","events_url":"https://api.github.com/users/kenokabe/events{/privacy}","received_events_url":"https://api.github.com/users/kenokabe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lxc/lxd/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lxc/lxd/milestones/10","html_url":"https://github.com/lxc/lxd/milestones/lxd-0.9","labels_url":"https://api.github.com/repos/lxc/lxd/milestones/10/labels","id":1057247,"number":10,"title":"lxd-0.9","description":"","creator":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":9,"state":"open","created_at":"2015-04-07T21:17:56Z","updated_at":"2015-05-11T03:20:50Z","due_on":"2015-05-12T04:00:00Z","closed_at":null},"comments":4,"created_at":"2015-05-06T01:08:53Z","updated_at":"2015-05-11T15:31:20Z","closed_at":null,"body":"The host is Ubuntu14.04\r\n\r\n```\r\nsudo apt install lxd\r\nnewgrp lxd\r\nlxc remote add images images.linuxcontainers.org\r\nlxc launch images:ubuntu/trusty/amd64 ubuntu\r\n\r\nlxc exec ubuntu /bin/bash\r\n\r\nroot@ubuntu:~# adduser ken\r\n.........\r\ngpasswd -a ken sudo\r\n\r\nroot@ubuntu:~# login ken\r\nPassword: \r\nWelcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-36-generic x86_64)\r\n\r\n * Documentation:  https://help.ubuntu.com/\r\n\r\nThe programs included with the Ubuntu system are free software;\r\nthe exact distribution terms for each program are described in the\r\nindividual files in /usr/share/doc/*/copyright.\r\n\r\nUbuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by\r\napplicable law.\r\n\r\nUnable to change owner or mode of tty stdin: Operation not permitted\r\n```\r\n \r\n>Unable to change owner or mode of tty stdin: Operation not permitted\r\n\r\nCan anyone tell what I miss?\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/100947008","html_url":"https://github.com/lxc/lxd/issues/590#issuecomment-100947008","issue_url":"https://api.github.com/repos/lxc/lxd/issues/590","id":100947008,"user":{"login":"hallyn","id":1359441,"avatar_url":"https://avatars.githubusercontent.com/u/1359441?v=3","gravatar_id":"","url":"https://api.github.com/users/hallyn","html_url":"https://github.com/hallyn","followers_url":"https://api.github.com/users/hallyn/followers","following_url":"https://api.github.com/users/hallyn/following{/other_user}","gists_url":"https://api.github.com/users/hallyn/gists{/gist_id}","starred_url":"https://api.github.com/users/hallyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallyn/subscriptions","organizations_url":"https://api.github.com/users/hallyn/orgs","repos_url":"https://api.github.com/users/hallyn/repos","events_url":"https://api.github.com/users/hallyn/events{/privacy}","received_events_url":"https://api.github.com/users/hallyn/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T15:31:20Z","updated_at":"2015-05-11T15:31:20Z","body":"Yup, the EPERM comes from an attempt to fchown stdin which is a devpts from the host, and owned by a uid (presumably root) not valid in the container's namespace.  It needs to be chowned to container root."}}