Skip to content
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

Launches into root account - would like to launch into un-elevated user profile #16

Closed
tbraun84 opened this issue Oct 11, 2022 · 1 comment

Comments

@tbraun84
Copy link

To prevent me from doing something foolish, I would like to launch CentOS with a non-root account. Is this setting "visible" in the builds?

@Vinfall
Copy link

Vinfall commented Oct 16, 2022

It's built using wsldl (see https://github.com/mishamosher/CentOS-WSL/blob/9-stream/build.sh#L16) . You can run .\CentOS.exe config --default-user averagejoe to set the default user as averagejoe.

Or more universally, you can run the distro with --user handsomejake param setting in Windows Terminal or set User in /etc/wsl.conf inside WSL:

# Set the user when launching a distribution with WSL.
[user]
default = DemoUser

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