Skip to content

Start Code-server with non-root #1250

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
Andromeda7177 opened this issue Jan 5, 2020 · 2 comments
Closed

Start Code-server with non-root #1250

Andromeda7177 opened this issue Jan 5, 2020 · 2 comments

Comments

@Andromeda7177
Copy link

Description

I've looked at the other question but no example how to start code-server in Full non-root user.

I didn't see a setting for the Terminal to not Open into the root user. I have the service setup to run from a non-root user but didn't see anywhere to change this. I can't deploy the service until i've solved the work around for this . Any ideas please all are welcomed.

Thank you

Related Issues

@sr229
Copy link
Contributor

sr229 commented Jan 5, 2020

You can run code-server as a non-user. #1010 should've fixed the docs with systemd.

@tabs-not-spaces
Copy link

As @sr229 said, this issue is resolved - simply place the following in your code-server.service file (assuming you are using systemd to launch the service).

[service]
user=USERNAMEGOESHERE

@sr229 sr229 closed this as completed Jan 6, 2020
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