snap create-user gets bad username
Bug #1603018 reported by
Michael Nelson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
ubuntu@
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@
"michael.nelson"
ubuntu@
#NAME_REGEX=
Assuming the above commented out NAME_REGEX is the default, then create-user will fail for some usernames which launchpad/SSO allow.
tags: | added: create-user |
Changed in snapd (Ubuntu): | |
status: | New → Fix Committed |
Changed in snappy: | |
status: | New → Fix Committed |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
Changed in snapd (Ubuntu): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Assuming we don't want people to have to change usernames on SSO/LP (sometimes not even possible, if people have packages published in PPAs - from memory?), I don't (yet) see any other option than to use the username with a period from SSO/LP (which is posix compliant [1]).
But can we be sure usernames with dots will be safe on other distros? (hopefully given it's within the standard). Or what other options are there?
I'd be happy to provide a fix if there's a decided direction.
[1] See points in http:// askubuntu. com/questions/ 405638/ what-are- the-disadvantag es-of-having- a-dot-in- a-user- name#405668