Coder Social home page Coder Social logo

Comments (5)

github-actions avatar github-actions commented on June 24, 2024

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

from docker-code-server.

aptalca avatar aptalca commented on June 24, 2024

Looks like your password files have trailing newlines.

Create them with printf as described in the docker secrets docs so they don't have the trailing newline

from docker-code-server.

NigelBoxing avatar NigelBoxing commented on June 24, 2024

Looks like your password files have trailing newlines.

Create them with printf as described in the docker secrets docs so they don't have the trailing newline

Thanks a lot. I try printf my-password > password.txt and docker-compose up again. To my surprise, it works well.
but i still don't know that why code-server could not set the password properly when the user fill password to password.txt via vim or echo xxx > password.txt
Is it a bug? the code-server forgets to trim the password.

from docker-code-server.

aptalca avatar aptalca commented on June 24, 2024

Is it a bug? the code-server forgets to trim the password.

You can report that upstream

But as you can see, the SUDO_PASSWORD, which is set by our image in bash, is failing because the trailing newline breaks our bash code and results in the error:

setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged

from docker-code-server.

NigelBoxing avatar NigelBoxing commented on June 24, 2024

Is it a bug? the code-server forgets to trim the password.

You can report that upstream

But as you can see, the SUDO_PASSWORD, which is set by our image in bash, is failing because the trailing newline breaks our bash code and results in the error:

setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged

Indeed, you are right.
Anyway, thanks a lot.

from docker-code-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.