-
Notifications
You must be signed in to change notification settings - Fork 832
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
Capital letters forbidden in username in Ubuntu 18.04 on W10 #3273
Comments
Interesting post. [goes looking....] Yep, that's
There is a related Debian thread here. Work-around is to follow the directions in the error. Once you are in Ubuntu with a well formed name (let's say
After that do:
And after that make sure all instances of WSL are closed because the new default doesn't take until the next ubuntu1804 WSL instance (this is nonobvious). All of which is (regrettably) label linux-behavior and not a WSL actionable. I am not sure why/how the behaviour changed in 18.04 vs 16.04. Hopefully that gets addressed upstream. Place to ask would be in the Ask Ubuntu forum. |
Hello, I will probably apply your solution even if it's not very simple because I have several computers concerned with the problem for different usernames. |
I know: It is the same behaviour with Bionic in a VM. First thing I checked. That surprised me a bit too. That means, nominally, this is a feature not a bug. I never noticed because I don't use uppercase user names. One could argue (convincingly) that |
Hello, |
I have a 16.04 VM handy, so I just checked. |
Hello, |
Without getting into the weeds, yes, sort of. There was no change "in WSL" that is causing cap names to be rejected. But I doubt the change in behaviour from an end-user perspective (versus 16.04) is intentional, so I've dropped the linux-behavior tag (even though it is Linux behaviour). Ownership of the WSL launcher is (let's call it) complicated. Sit tight. I am sure this will sort itself. |
Hello, |
Hello, |
Hello, |
Hello, |
It has been explained why: Because Ubuntu's configuration forbids them. If you feel strongly about it you could try your luck in the Ubuntu forums with WSl tag and see if you get any love upstream. The chirping crickets here are probably at least in part because it isn't a direct WSL actionable (there aren't any system call fails; WSL is just doing was Ubuntu is telling it to do). But more practically, there hasn't been exactly a landslide of others jumping in clamouring for a fix, and there is a workaround. Contrast many many other issues open in this github, which are blocking bugs and folks desperately want. This one has been open for one month. If it makes you feel any better, I've wanted WSL to fix the directory rename EACCES problem since Christmas of 2016. My time will come. Yours might too. |
Hello, Have a nice day. |
Link your post here for the network effect. That they sent you back here not unexpected, but ignores the fact that Ubuntu owns the behaviour. Also (if we are keeping score) me sending you to them is not entirely constructive either, since they might not even consider it a misbehaviour. When someone else follows up here with a "me too" eventually (someone will), at least they'll have the two threads together for reference. |
Hello, |
Thanks. Translation here for those like me that are only good for high-school French (the fur trader kind not the city of lights kind at that). To the extent there's a snowballs chance, you might try posting to the link I sent a couple of messages back. You're just getting responses from the cheap seats in your linked thread, which devolved into etables noise. You may luck out and someone from Canonical might actually see your post in the other. But as they say en français, bonne chance. |
Hello, |
Hello, |
Creation of the user account is entirely up to the distribution owners (in this case Canonical). All that is needed is to add "--force-badname" to this line of the sample. |
Hello, |
@Pumafun - Correct. As I clarified above, the ball is in Canonical's court if they want to allow upper-case letters in usernames. There is nothing actionable here for Microsoft. |
Thanks for your answer. |
It was marked linux-behavior out of the gate for that reason. But there is something unexplained going on here. Uppercase usernames work in Ubuntu 16.04 on WSL, even though they (surprisingly) are not allowed in a stock native Ubuntu 16.04 on bare metal. In other words, uppercase usernames worked in 16.04 on WSL either unintentionally or by design. Something changed, and it wasn't Ubuntu userspace. Because both 16.04 and 18.04 Ubuntu do not allow uppercase usernames (by default). If it isn't Ubuntu's userspace (and it sure as heck isn't the syscall emulation) that makes me point fingers at the launcher. I can't confirm that hypothesis, because the 16.04 launcher for Ubuntu is closed source, and (de facto) written by MSFT. If we are saying the launcher code is unambiguously now in the distro's wheelhouse, that works for me. But the behavioural change isn't explained; and cutting to the chase, I suspect not intended. |
@therealkenc - Agreed with everything you said. The 16.04 app does pass the --force-badname flag, because the previous version of the sample (I believe before it was open sourced) did so. The sample was updated to not pass this flag and I suspect the 18.04 launcher is largly a copy / paste of the new sample. Ideally Canonical's launcher(s) would also be open source, but again nothing Microsoft actionable there. |
Thanks. Appreciated. You do know copy-pasting "the sample" needs to end, right. |
@therealkenc - preaching to the choir, brother. |
Hello,
Could you please explain ? |
Hello |
I almost tried after there was no response, but I am not sure how one would go about further explaining what Ben wrote that wouldn't involve repetition. The 16.04 launcher passed If enough people ask Canonical to update their launcher, it is likely they will. Between you and me I suspect the launcher will get updated with the one-liner change next roll assuming Canonical has noticed the username case behavioural change (at all) and they don't consider it by-design, but who knows. |
Hello, |
Hello,
In Ubuntu 16.04 on Windows 10, my username started with a capital letter. Patricia
In Ubuntu 18.04, the system doesn't allow me to use capital letters and returns the following message
adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[_SYSTEM} configuration variable. Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.
So, I have to change my username to patricia.
Can you explain me what is the problem with capital letters in Ubuntu 18.04 ?
The text was updated successfully, but these errors were encountered: