{"action":"created","issue":{"url":"https://api.github.com/repos/tianon/docker-brew-ubuntu-core/issues/17","labels_url":"https://api.github.com/repos/tianon/docker-brew-ubuntu-core/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/tianon/docker-brew-ubuntu-core/issues/17/comments","events_url":"https://api.github.com/repos/tianon/docker-brew-ubuntu-core/issues/17/events","html_url":"https://github.com/tianon/docker-brew-ubuntu-core/issues/17","id":43748655,"number":17,"title":"  Seems like `ubuntu:14.04` image has no setuid bit set on `/usr/bin/sudo`","user":{"login":"907th","id":800362,"avatar_url":"https://avatars.githubusercontent.com/u/800362?v=3","gravatar_id":"","url":"https://api.github.com/users/907th","html_url":"https://github.com/907th","followers_url":"https://api.github.com/users/907th/followers","following_url":"https://api.github.com/users/907th/following{/other_user}","gists_url":"https://api.github.com/users/907th/gists{/gist_id}","starred_url":"https://api.github.com/users/907th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/907th/subscriptions","organizations_url":"https://api.github.com/users/907th/orgs","repos_url":"https://api.github.com/users/907th/repos","events_url":"https://api.github.com/users/907th/events{/privacy}","received_events_url":"https://api.github.com/users/907th/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-09-24T10:28:07Z","updated_at":"2015-01-30T08:55:32Z","closed_at":"2014-10-16T09:31:20Z","body":"I just installed `ubuntu:14.04` on VPS and fall with problem: when I create a new user and `su` it, then `sudo` stops working with message `sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set`.\r\n\r\nLog:\r\n\r\n```bash\r\nroot@server:~/ejudge-docker# docker run -t -i ubuntu:14.04 bash\r\nroot@5c55117a425e:/# sudo ls\r\nbin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var\r\nroot@5c55117a425e:/# aduser ejudge\r\nbash: aduser: command not found\r\nroot@5c55117a425e:/# adduser ejudge\r\nAdding user `ejudge' ...\r\n...\r\nroot@5c55117a425e:/# su ejudge\r\nejudge@5c55117a425e:/$ sudo ls\r\nsudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set\r\nejudge@5c55117a425e:/$ exit\r\nroot@5c55117a425e:/# sudo ls\r\nbin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var\r\nroot@5c55117a425e:/# which sudo\r\n/usr/bin/sudo\r\nroot@5c55117a425e:/# ls -l /usr/bin/sudo\r\n-rwxr-xr-x 1 root root 155008 Feb 10  2014 /usr/bin/sudo\r\n```"},"comment":{"url":"https://api.github.com/repos/tianon/docker-brew-ubuntu-core/issues/comments/72171644","html_url":"https://github.com/tianon/docker-brew-ubuntu-core/issues/17#issuecomment-72171644","issue_url":"https://api.github.com/repos/tianon/docker-brew-ubuntu-core/issues/17","id":72171644,"user":{"login":"Nimeshka","id":7909593,"avatar_url":"https://avatars.githubusercontent.com/u/7909593?v=3","gravatar_id":"","url":"https://api.github.com/users/Nimeshka","html_url":"https://github.com/Nimeshka","followers_url":"https://api.github.com/users/Nimeshka/followers","following_url":"https://api.github.com/users/Nimeshka/following{/other_user}","gists_url":"https://api.github.com/users/Nimeshka/gists{/gist_id}","starred_url":"https://api.github.com/users/Nimeshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nimeshka/subscriptions","organizations_url":"https://api.github.com/users/Nimeshka/orgs","repos_url":"https://api.github.com/users/Nimeshka/repos","events_url":"https://api.github.com/users/Nimeshka/events{/privacy}","received_events_url":"https://api.github.com/users/Nimeshka/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T08:55:32Z","updated_at":"2015-01-30T08:55:32Z","body":"This happens when the permissions get changed. You can boot into Ubuntu recover mode and enter the following commands to get the root access back.\r\n\r\nmount -o remount,rw /\r\nmount --all\r\nchown root:root /usr/bin/sudo\r\nchmod 4755 /usr/bin/sudo\r\nrestart\r\n\r\nI found this here : http://bitmapcake.blogspot.com/2014/08/linux-fixing-error-sudo-usr-bin-sudo-must-be-owned-by-uid.html"}}