Invalid user name: starting with a digit

Vidol Loeung fedora.kh at undp.org
Thu Sep 8 01:31:12 UTC 2005


Thank you.
Is there an option some where that we can set so that the useradd command
would accept user names starting with a digit.

I never used Debian, but as I googled around, there is an option
'--force-badname' in Debian's useradd command. They can even modify the
Regular Expression validation rule for user names such as
'^[a-z][0-9a-z]*$'.

I wonder if we could have the same on Fedora Core.

Regards,
Vidol

----- Original Message ----- 
From: "Justin Willmert" <justin at jdjlab.com>
To: "For users of Fedora Core releases" <fedora-list at redhat.com>
Sent: Wednesday, September 07, 2005 7:18 PM
Subject: Re: Invalid user name: starting with a digit


> Vidol Loeung wrote:
> > Hi All:
> >
> > Is there a way to create a new user with name starting with a digit?
> >
> > TIA for any inputs.
> >
> > Vidol
> >
> This may not be the best solution, but it works: create the user without
> the digit in the beginning, and it will be registered and its home
> created. Then move the home from, for example, 'gene' to '2gene'. Then
> edit /etc/passwd, /etc/shadow, /etc/group, and /etc/gshadow, each time
> replacing the 'gene'/groupname (which should be the first column) with
> the new name '2gene'.
>
> If you have questions, just ask me (I had to do this for a user in my
> setup).
>
> Justin Willmert
>
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list




More information about the fedora-list mailing list