1832165 Members
2855 Online
110038 Solutions
New Discussion

Username limitations

 
SOLVED
Go to solution
Frederick Maulion
Occasional Advisor

Username limitations

Does usernames in Linux (specifically Mandrake 8.1) have to start with letters? I tried creating them with numbers but Linux doesn't accept the usernames.
2 REPLIES 2
Marco Paganini
Respected Contributor
Solution

Re: Username limitations

Hello Frederick,

I've checked the source code for useradd.c and you're right. Usernames and Groupnames cannot start with a digit (they MUST start with a letter). Also, they may not contains colons, commas, newlines or any non-printable characters.

Hope it helps,
Paga
Keeping alive, until I die.
Frederick Maulion
Occasional Advisor

Re: Username limitations

Thanks, Paga.

Just wanted confirmation.

Frederick