镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Sudo doesn't work #15

Open
Open

Description

@sometext

on OSX using boot2docker After

ssh -p <port> user@localhost 

succeeds I can't sudo:
Error:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

can't find good fix and wish to edit /var/www/ php files

Activity

  1. jbfink commented on Jul 7, 2014

    @jbfink
    Owner

    @sometext, thanks for trying out docker-wordpress! Funnily enough, I don't even get as far as you do -- ssh accepts my user password but then immediately closes me out of the connection. I wonder if something changed with Ubuntu 14.04 that I have to fix. I'll work on it and report back.

  2. sashman-jaspin commented on Aug 6, 2014

    @sashman-jaspin

    Thanks for the great script jbfink. I added ssh to the nginx-wordpress project and hit similar issues with ssh. There is an issue with Ubuntu 14.04 and the ssh example on the Docker site using a root login. There is a workaround using sed to change PermitRootLogin without-password to PermitRootLogin Yes, which should allow you to login as root again.

    ssh install

    RUN apt-get install -y openssh-server
    RUN mkdir /var/run/sshd
    RUN echo 'root:screencast' | chpasswd
    RUN sed --in-place=.bak 's/without-password/yes/' /etc/ssh/sshd_config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions