diff --git a/configs/airootfs/root/configurator b/configs/airootfs/root/configurator index 3a7d042..51bc6ac 100644 --- a/configs/airootfs/root/configurator +++ b/configs/airootfs/root/configurator @@ -101,7 +101,11 @@ user_form() { username=$(gum input --placeholder "Alphanumeric without spaces (like dhh)" --prompt.foreground="#845DF9" --prompt "Username> ") || abort if [[ "$username" =~ ^[a-z_][a-z0-9_-]*[$]?$ ]]; then - break + if [[ "$username" =~ ^(root|bin|daemon|mail|ftp|http|nobody|dbus|systemd-coredump|systemd-network|systemd-oom|systemd-journal-remote|systemd-resolve|systemd-timesync|tss|uuidd|alpm|git|avahi|cups|lp|_talkd|polkitd|rtkit|qemu|brltty|gluster|rpc|libvirt-qemu|pcscd|nvidia-persistenced|sddm)$ ]] ; then + notice "Username is reserved for system" 1 + else + break + fi else notice "Username must be alphanumeric with no spaces" 1 fi