Incidentally, Jesús, that *is* checked. The code contains: if ! LC_ALL=C expr "$USER" : '[a-z][-a-z0-9]*$' >/dev/null; then
(expr implicitly prepends a ^ to the regex) and in my tests I got an error properly displayed when trying to select a username containing spaces or symbols. So, if you file a bug about this, I'll need specifics. -- crashes if reserved username is selected https://launchpad.net/bugs/47861 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs