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

Installation fails for all-numeric usernames #3780

Closed
sraase opened this issue Jan 16, 2019 · 1 comment
Closed

Installation fails for all-numeric usernames #3780

sraase opened this issue Jan 16, 2019 · 1 comment
Labels

Comments

@sraase
Copy link

sraase commented Jan 16, 2019

Please fill out the below information:

  • Your Windows build number: Microsoft Windows [Version 10.0.16299.847]

  • What you're doing and what's happening:
    Trying to install Ubuntu 16.04 with an all-numeric username, to match the username used elsewhere in the network. See below:

PS C:\Users\12345678\Ubuntu> .\ubuntu.exe
Installing, this may take a few minutes...
Installation successful!
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: 12345678
useradd: group '12345678' does not exist
adduser: `/usr/sbin/useradd -d /home/12345678 -g 12345678 -s /bin/bash -u 1000 12345678' returned error code 6. Exiting.
usermod: user '12345678' does not exist
passwd: user '12345678' does not exist
passwd: user '12345678' does not exist
passwd: user '12345678' does not exist
passwd: user '12345678' does not exist
[... until CTRL+C ...]
PS C:\Users\12345678\Ubuntu>

  • What's wrong / what should be happening instead:

Installation should succeed with an all-numeric username.

@therealkenc
Copy link
Collaborator

adduser: `/usr/sbin/useradd -d /home/12345678 -g 12345678 -s /bin/bash -u 1000 12345678'

This is sort of variation #3273. That line above fails on Real Ubuntu also, like this. The solution would be to get Canonical to update their launcher to do a groupadd as part of the process. Or maybe you could talk Hayden into doing it here. Work around, same as #3273, would be to bootstrap with a fake name and then add the user/group after the fact. Yes I know, lame, don't shoot the messenger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants