Public bug reported:

ubuntu@dev-xenial3:~⟫ sudo snap create-user [email protected]
error: bad user result: cannot create user michael.nelson: adduser failed with 
exit status 1: 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.

ubuntu@dev-xenial3:~⟫ curl -s 
https://login.ubuntu.com/api/v2/keys/[email protected] | jq .username
"michael.nelson"

ubuntu@dev-xenial3:~⟫ grep NAME_REGEX /etc/adduser.conf
#NAME_REGEX="^[a-z][-a-z0-9_]*\$"

Assuming the above commented out NAME_REGEX is the default, then create-
user will fail for some usernames which launchpad/SSO allow.

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1603018

Title:
  snap create-user gets bad username

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1603018/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to