Per our discussion I just removed floating point checks altogether. "0.123" is now considered valid because it is impossible to have a floating point uid or gid so there will be no confusion with floating point numbers. I have added those floating point numbers to the "validUsernames" test, and added a few more cases that are almost numeric, like "0xdeadbeefjawn-smith" to make sure they are seen as valid.
** Patch added: "Removed float checks" https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1927078/+attachment/5510618/+files/lp1927078_removed_float_checks.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1927078 Title: Don't allow useradd to use fully numeric names To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1927078/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs