Also validate username against /etc/adduser.conf
If the host system provides a username regex at /etc/adduser.conf, check against that too.
Edited by Georges Basile Stavracas Neto
If the host system provides a username regex at /etc/adduser.conf, check against that too.