Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudo doesn't work #15

Open
sometext opened this issue Jul 7, 2014 · 2 comments
Open

Sudo doesn't work #15

sometext opened this issue Jul 7, 2014 · 2 comments

Comments

@sometext
Copy link

sometext commented Jul 7, 2014

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

@jbfink
Copy link
Owner

jbfink commented Jul 7, 2014

@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.

@sashman-jaspin
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants