How do I change the user in a workspace from coder to ${data.coder_workspace.me.owner} #10746
Answered
by
code-asher
simonjcarr
asked this question in
Q&A
-
How do I change the user and hostname in a workspace. By default it looks something like this If I can't change the hostname, I would settle for changing just the username. I have tried to add a new user in the template startup script. Although the user is created, I can't seem to change to it.
|
Beta Was this translation helpful? Give feedback.
Answered by
code-asher
Nov 17, 2023
Replies: 1 comment
-
Just FYI, I transferred your discussion from This might help: Lines 275 to 276 in ba955f4 Not sure about the user, though. Maybe check out this template as an example: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
matifali
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just FYI, I transferred your discussion from
coder/code-server
tocoder/coder
.This might help:
coder/dogfood/main.tf
Lines 275 to 276 in ba955f4
Not sure about the user, though. Maybe check out this template as an example:
https://github.com/coder/coder/blob/ba955f44d04dbf976af32ffd6eb274c4e602ee0c/examples/templates/docker/main.tf