{"action":"opened","issue":{"url":"https://api.github.com/repos/alidock/alidock/issues/123","repository_url":"https://api.github.com/repos/alidock/alidock","labels_url":"https://api.github.com/repos/alidock/alidock/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/alidock/alidock/issues/123/comments","events_url":"https://api.github.com/repos/alidock/alidock/issues/123/events","html_url":"https://github.com/alidock/alidock/issues/123","id":438040465,"node_id":"MDU6SXNzdWU0MzgwNDA0NjU=","number":123,"title":"alidock fails due to invalid username","user":{"login":"mconcas","id":4990252,"node_id":"MDQ6VXNlcjQ5OTAyNTI=","avatar_url":"https://avatars2.githubusercontent.com/u/4990252?v=4","gravatar_id":"","url":"https://api.github.com/users/mconcas","html_url":"https://github.com/mconcas","followers_url":"https://api.github.com/users/mconcas/followers","following_url":"https://api.github.com/users/mconcas/following{/other_user}","gists_url":"https://api.github.com/users/mconcas/gists{/gist_id}","starred_url":"https://api.github.com/users/mconcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconcas/subscriptions","organizations_url":"https://api.github.com/users/mconcas/orgs","repos_url":"https://api.github.com/users/mconcas/repos","events_url":"https://api.github.com/users/mconcas/events{/privacy}","received_events_url":"https://api.github.com/users/mconcas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-28T10:20:19Z","updated_at":"2019-04-28T10:20:19Z","closed_at":null,"author_association":"COLLABORATOR","body":"Sometimes users may have numeric-only usernames on hosts not owned by them.\r\nApparently, macOS systems allows for that, I suspect together with some other ID management systems. (as a side note: you cannot create a numeric-only username with canonical procedure on a mac)\r\n\r\n`useradd` does not allow for creation of usernames with numbers. Below is reported a log got by an user.\r\n\r\n```\r\ntail -10 ~/alidock/.alidock.log\r\n|...\r\n+ useradd -d /home/alidock -M -N -s /bin/bash -u 123456789 123456\r\nuseradd: invalid user name '123456'\r\n```\r\nAt glance it does not look like something very hard to fix, in these cases we can just prepend/append a literal pattern to the username, as we know Linux does not really care about usernames. It however have to be tested with macOS."}}
{"actor":{"display_login":"mconcas"}}