Skip to content

Change User #3202

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

Closed
idoodler opened this issue Apr 24, 2021 · 1 comment
Closed

Change User #3202

idoodler opened this issue Apr 24, 2021 · 1 comment

Comments

@idoodler
Copy link

I started to play around with this project, everything went smoothly 👍

I then noticed that the Terminal showed "root" as user which I don't really like cause I was deploying it on my own server, not some kind of DigitalOcean server. So I created its own user "coder", defined it in the service file and restarted the service.

I then ran into permission issues (as expected), so I changed the ownership of the "user-data-dir" and of the "code-server" folder itself which solved the main problem (HTTP Response Code 500). I then wanted to check the Console and noticed that "/bin/bash" exits with exit code 1.

In the logs I see that "scandir" also has permission issues of path "/root".

How can I fix this issue, or how can I reconfigure code-server to use the newly created user?

I am running on Ubuntu Server and followed this tutorial but adopted it for my particular installation as I am not using DigitalOcean.

@idoodler
Copy link
Author

I decided to use Docker instead of installing it to my production server so I have encapsulated it from from my main processes.

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

1 participant