Replies: 1 comment 2 replies
-
The groups were discussed, not sure about user:
BTW; I think the generated ssh key also leaks user@host (since it is the default "comment", in the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
related to #1015 I am wondering how I can get the hostname so it does not depend on the name of my local user on my host os.
My use-case is that I want to share a lima yaml file where I'm installing docker in a system provisioning script (so it's all as root), but I want to add my non-root user to the docker group so I can use docker without sudo.
I'd be fine with using an environment variable but I could not find any.
I'd also be fine with a
LIMA_DEFAULT_USERNAME
variable/setting.So in my setup I have a line like
usermod -a -G docker MYUSERNAME
where the username currently depends on the host os which makes it hard to share/reuse the yaml file. Is there a way to make this generic?Another reason why people might want to use a username that is not equal to the username of the host os is if the host os username is something that should not be shared. So if I copy/paste my default prompt from my vm it always has the username in it which I don't want to share for privacy reasons. I'd be happy with a generic 'lima' username.
Beta Was this translation helpful? Give feedback.
All reactions