Re: Invalid user name: starting with a digit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
To: "For users of Fedora Core releases" <fedora-list@xxxxxxxxxx>
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@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux