{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/1617","repository_url":"https://api.github.com/repos/coreos/bugs","labels_url":"https://api.github.com/repos/coreos/bugs/issues/1617/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/1617/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/1617/events","html_url":"https://github.com/coreos/bugs/issues/1617","id":183507178,"number":1617,"title":"visudo isn't useful","user":{"login":"kbrwn","id":4100493,"avatar_url":"https://avatars.githubusercontent.com/u/4100493?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrwn","html_url":"https://github.com/kbrwn","followers_url":"https://api.github.com/users/kbrwn/followers","following_url":"https://api.github.com/users/kbrwn/following{/other_user}","gists_url":"https://api.github.com/users/kbrwn/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrwn/subscriptions","organizations_url":"https://api.github.com/users/kbrwn/orgs","repos_url":"https://api.github.com/users/kbrwn/repos","events_url":"https://api.github.com/users/kbrwn/events{/privacy}","received_events_url":"https://api.github.com/users/kbrwn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/bugs/labels/area/security","name":"area/security","color":"bfe5bf"},{"url":"https://api.github.com/repos/coreos/bugs/labels/component/distro","name":"component/distro","color":"0052cc"},{"url":"https://api.github.com/repos/coreos/bugs/labels/kind/friction","name":"kind/friction","color":"c7def8"},{"url":"https://api.github.com/repos/coreos/bugs/labels/priority/P1","name":"priority/P1","color":"eb6420"},{"url":"https://api.github.com/repos/coreos/bugs/labels/team/os","name":"team/os","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-17T19:37:06Z","updated_at":"2016-10-18T17:24:20Z","closed_at":null,"body":"# Issue Report #\r\n\r\n## Bug ##\r\n\r\nAttempting to add a sudo user is done using the `visudo` command but this isn't useful on CoreOS as the default sudoers file is on the read-only partition. \r\n\r\n```\r\n$ visudo\r\nvisudo: /usr/share/baselayout/sudoers: Read-only file system\r\n```\r\n\r\nThis may cause users to attempt to add a sudo user by creating a `/etc/sudoers.d/user1` but if the formatting of this file is incorrect the user will lose sudo access for the `core` user: \r\n\r\n```\r\n$ sudo vi /etc/sudoers.d/user1\r\n>>> /etc/sudoers.d/user1: syntax error near line 1 <<<\r\nsudo: parse error in /etc/sudoers.d/user1 near line 1\r\nsudo: no valid sudoers sources found, quitting\r\nsudo: unable to initialize policy plugin\r\n```\r\n\r\n\r\n\r\n### CoreOS Version ###\r\n\r\n```\r\n$ cat /etc/os-release \r\nNAME=CoreOS\r\nID=coreos\r\nVERSION=1192.0.0\r\nVERSION_ID=1192.0.0\r\nBUILD_ID=2016-10-06-0240\r\nPRETTY_NAME=\"CoreOS 1192.0.0 (MoreOS)\"\r\nANSI_COLOR=\"1;32\"\r\nHOME_URL=\"https://coreos.com/\"\r\nBUG_REPORT_URL=\"https://github.com/coreos/bugs/issues\"\r\n```\r\n\r\n### Expected Behavior ###\r\n\r\nvisudo edits the sudoers file in a safe fashion\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/254578610","html_url":"https://github.com/coreos/bugs/issues/1617#issuecomment-254578610","issue_url":"https://api.github.com/repos/coreos/bugs/issues/1617","id":254578610,"user":{"login":"kbrwn","id":4100493,"avatar_url":"https://avatars.githubusercontent.com/u/4100493?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrwn","html_url":"https://github.com/kbrwn","followers_url":"https://api.github.com/users/kbrwn/followers","following_url":"https://api.github.com/users/kbrwn/following{/other_user}","gists_url":"https://api.github.com/users/kbrwn/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrwn/subscriptions","organizations_url":"https://api.github.com/users/kbrwn/orgs","repos_url":"https://api.github.com/users/kbrwn/repos","events_url":"https://api.github.com/users/kbrwn/events{/privacy}","received_events_url":"https://api.github.com/users/kbrwn/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T17:24:20Z","updated_at":"2016-10-18T17:24:20Z","body":"I'll add something to this doc: https://coreos.com/os/docs/latest/adding-users.html"}}
{"actor":{"display_login":"kbrwn"}}