Usernames with spaces

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
ody
Forum Contributor
Posts: 147
Joined: Sat Mar 27, 2004 4:42 am
Location: ManchesterUK

Usernames with spaces

Post by ody »

I was just registering with a web site when I started to wonder what the whole thing about not allowing spaces in usernames is about.. I've always made the restriction myself with the work I do but can't actualy think of any good reason for the restriction.. anyone have any insights or thoughts?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Traditionally usernames were used as the basis of filesystem paths - so it was a restriction. With applications this is not the case, so if spaces are disallowed I can't think of any good reason other than long standing convention.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

Maugrim_The_Reaper wrote:Traditionally usernames were used as the basis of filesystem paths - so it was a restriction. With applications this is not the case, so if spaces are disallowed I can't think of any good reason other than long standing convention.
personally i didn't know this BUT i don't allow login usernames to have spaces but i do allow display names to have it tho.

i love computer history
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Good question. I never knew about the filesystem thingy... sounds logical, thanks for educating :)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

I never knew about the filesystem thingy...
Didn't you notice /home/<username> directory in your filesystem? (you were using Linux, if memory serves)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Weirdan wrote:
I never knew about the filesystem thingy...
Didn't you notice /home/<username> directory in your filesystem? (you were using Linux, if memory serves)
Hehe obviously, I just hadn't allowed the cogs in my brain to turn far enough for that thought to enter my head while I read the post :P :lol:
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

A lot of my early internet activity included user webspace in the format domain.com/user/~maugrim. ;) Seemed pretty obvious from thereon in. It should of course still be enforced in any application assigning userspaces...
i don't allow login usernames to have spaces but i do allow display names to have it tho.
A lot of folk do - traditions are hard to evade. Look at my own username ;), I automatically use underscores in my username all the time out of habit. But there's no reason for a username not to be allowed have spaces, or any other valid printable character imaginable.
DrTom
Forum Commoner
Posts: 60
Joined: Wed Aug 02, 2006 8:40 am
Location: Las Vegas

Post by DrTom »

What's kind of funny is you CAN have directories with spaces on linux and have been able too for a while. Although it still doesn't allow you to do it for user names.
ody
Forum Contributor
Posts: 147
Joined: Sat Mar 27, 2004 4:42 am
Location: ManchesterUK

Post by ody »

One reason I could think of last night was email addresses.. which would be at least one reason why Unix based systems certainly wouldn't allow spaces. Also if you planned on giving your users email addresses your wouldn't want them registering with usernames that are illegal for email.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Actually spaces are allowed in email addresses under RFC822. AFAIK they must however be part of a quoted string for the addressee.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Indeed, it looks like this:

"Username with spaces in"@domain.tld

Nutz.
ody
Forum Contributor
Posts: 147
Joined: Sat Mar 27, 2004 4:42 am
Location: ManchesterUK

Post by ody »

Hrmm interesting, I guess you really do learn something new everyday.
Post Reply