user-accounts: Check username validity over usermod

Username policies differ across the distributions. See the discussion on:
!359

It is not possible to hard-code some rules here without the need for
downstream modifications. Let's check the validity of usernames dynamically
over "usermod" to prevent this.

Just be careful that this is based on undocumented usermod behavior, which
may change in the future.
12 jobs for wip/oholy/username-validity in 6 minutes and 31 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Build
passed #260394
build

00:02:21

failed #260022
build

00:09:44

 
  Test
passed #260024
asan

00:04:09

passed #260023
test

00:03:46

 
  Manual
manual #260029
allowed to fail manual
armv8
manual #260025
allowed to fail manual
flatpak
manual #260028
allowed to fail manual
msan
manual #260030
allowed to fail manual
ppc64le
manual #260026
allowed to fail manual
tsan
manual #260027
allowed to fail manual
ubsan
 
  Review
manual #260031
allowed to fail manual
review
manual #260032
allowed to fail manual
stop_review