HF RL Explorer

Linux Username Validator

Linux Username Validator: a task in Terminal-Lego-15k (Harbor dataset). Based on the real behavior of useradd on CentOS 6 / RHEL 6 systems, write a Python script that validates Linux usernames according to the actual rules used by the useradd command (shadow-utils package).

The task

Based on the real behavior of `useradd` on CentOS 6 / RHEL 6 systems, write a Python script that validates Linux usernames according to the actual rules used by the `useradd` command (shadow-utils package).

Part of PrimeIntellect/Terminal-Lego-15k.