{"action":"created","issue":{"url":"https://api.github.com/repos/ImmobilienScout24/c-bastion/issues/10","repository_url":"https://api.github.com/repos/ImmobilienScout24/c-bastion","labels_url":"https://api.github.com/repos/ImmobilienScout24/c-bastion/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ImmobilienScout24/c-bastion/issues/10/comments","events_url":"https://api.github.com/repos/ImmobilienScout24/c-bastion/issues/10/events","html_url":"https://github.com/ImmobilienScout24/c-bastion/issues/10","id":142963149,"number":10,"title":"delete user should also delete screen session infos","user":{"login":"schlomo","id":101384,"avatar_url":"https://avatars.githubusercontent.com/u/101384?v=3","gravatar_id":"","url":"https://api.github.com/users/schlomo","html_url":"https://github.com/schlomo","followers_url":"https://api.github.com/users/schlomo/followers","following_url":"https://api.github.com/users/schlomo/following{/other_user}","gists_url":"https://api.github.com/users/schlomo/gists{/gist_id}","starred_url":"https://api.github.com/users/schlomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlomo/subscriptions","organizations_url":"https://api.github.com/users/schlomo/orgs","repos_url":"https://api.github.com/users/schlomo/repos","events_url":"https://api.github.com/users/schlomo/events{/privacy}","received_events_url":"https://api.github.com/users/schlomo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-23T13:46:42Z","updated_at":"2016-04-28T06:59:35Z","closed_at":null,"body":"Steps to reproduce:\r\n* create user sschapiro\r\n* login and start screen\r\n* delete user sschapiro\r\n* try to login and use screen again\r\n\r\nUsing screen again does not work and fails with the following error message:\r\n```\r\nsschapiro@cbastion-eu-west-1.x.y.z:~$ screen\r\nYou are not the owner of /var/run/screen/S-sschapiro.\r\nsschapiro@cbastion-eu-west-1.x.y.z:~$ ll /var/run/screen/S-sschapiro\r\nls: cannot open directory /var/run/screen/S-sschapiro: Permission denied\r\nsschapiro@cbastion-eu-west-1.x.y.z:~$ ll -d /var/run/screen/S-sschapiro\r\ndrwx------ 2 1000 1000 4096 Mar 23 09:43 /var/run/screen/S-sschapiro/\r\n```\r\n\r\n## Suggested Fix\r\n\r\nDeleting a user should also remove all his files, especially in `/var`. That will also remove user cron jobs and other things that a user might leave behind."},"comment":{"url":"https://api.github.com/repos/ImmobilienScout24/c-bastion/issues/comments/215328837","html_url":"https://github.com/ImmobilienScout24/c-bastion/issues/10#issuecomment-215328837","issue_url":"https://api.github.com/repos/ImmobilienScout24/c-bastion/issues/10","id":215328837,"user":{"login":"esc","id":41563,"avatar_url":"https://avatars.githubusercontent.com/u/41563?v=3","gravatar_id":"","url":"https://api.github.com/users/esc","html_url":"https://github.com/esc","followers_url":"https://api.github.com/users/esc/followers","following_url":"https://api.github.com/users/esc/following{/other_user}","gists_url":"https://api.github.com/users/esc/gists{/gist_id}","starred_url":"https://api.github.com/users/esc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esc/subscriptions","organizations_url":"https://api.github.com/users/esc/orgs","repos_url":"https://api.github.com/users/esc/repos","events_url":"https://api.github.com/users/esc/events{/privacy}","received_events_url":"https://api.github.com/users/esc/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T06:59:35Z","updated_at":"2016-04-28T06:59:35Z","body":"I am not even sure anymore if \"delete\" is even needed. If \"upload\" were to be a) idempotent and b) would simply concatenate the uploaded key to the  `authorized_keys` file, this would be a non-issue."}}