LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2014, 12:08 PM   #1
miamoore1993
LQ Newbie
 
Registered: May 2014
Posts: 4

Rep: Reputation: Disabled
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 ,
mia
 
Old 06-05-2014, 12:29 PM   #2
potato_farmer
Member
 
Registered: May 2014
Posts: 55

Rep: Reputation: Disabled
What does that mean? You want to add a username called "1"?

useradd 1 ?
 
Old 06-05-2014, 02:46 PM   #3
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,658

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
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.
 
Old 06-05-2014, 04:52 PM   #4
potato_farmer
Member
 
Registered: May 2014
Posts: 55

Rep: Reputation: Disabled
This depends on the distribution. I can add single digit usernames just fine on Fedora 20.
 
Old 06-05-2014, 08:18 PM   #5
miamoore1993
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
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 . Meaning single digit username should not restricted like other distro do.. because strong password will be inplaced.

mia
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular expression to Grep for a n digit number somupl86 Linux - General 7 11-24-2010 07:11 AM
Substitue single-digit, two-digit, and 3-digit numbers with text using sed dmason165 Programming 13 08-07-2009 11:38 AM
15 digit long number Zagi Programming 3 07-14-2008 07:26 AM
how do i produce a single digit random number in BASH? jaepi Linux - Newbie 8 04-30-2007 12:54 AM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration