According to systemd's enforced User/Group Name Syntax, the set of one is defined by the exact same rules as for POSIX, i.e. «lower and upper case ASCII letters, digits, period, underscore, and hyphen» in a random sequences, as well for Debian‑based OS's.
... the value shall be composed of characters from the portable character set (except NUL and as indicated below).
Therefore, the definition of user name valid string forward compatible with POSIX environmental variables and quotes around $USER
variable can be omitted in commands like chown
or install
?
USER=kamil; IFS=m; printf '%s\n' $USER