LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FEDORA 20 LXDE: How can i force username as single digit number only like 1? (https://www.linuxquestions.org/questions/linux-newbie-8/fedora-20-lxde-how-can-i-force-username-as-single-digit-number-only-like-1-a-4175507140/)

miamoore1993 06-05-2014 11:08 AM

FEDORA 20 LXDE: How can i force username as single digit number only like 1?
 
Hi :),

How can i force username as single digit number only like 1?


Thanks :hattip:,
mia

potato_farmer 06-05-2014 11:29 AM

What does that mean? You want to add a username called "1"?

useradd 1 ?

ondoho 06-05-2014 01:46 PM

Code:

$ sudo useradd 1
useradd: invalid user name '1'

$ sudo useradd m

$ sudo useradd one

$

i've just added 2 users to my system, one named 'm', the other 'one'.
a single digit is invalid.

potato_farmer 06-05-2014 03:52 PM

This depends on the distribution. I can add single digit usernames just fine on Fedora 20.

miamoore1993 06-05-2014 07:18 PM

Yes, i wanted to use username "1" literally. Just my personal preference.

Is this really impossible? :(

I thought if this can be done by others - fedora could do also. I know it is a security issue but having a strong password then it should be fine :confused:. Meaning single digit username should not restricted like other distro do.. because strong password will be inplaced.

mia :)


All times are GMT -5. The time now is 01:50 AM.