WSL: Capital letters forbidden in username in Ubuntu 18.04 on W10
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 ?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 30 (4 by maintainers)
Interesting post. [goes looking…] Yep, that’s
adduser(1)3.116ubuntu1 behaviour alright. With Bionic on Real Linux: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
wsluseror lower casepatricia) do: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.
@therealkenc - preaching to the choir, brother.