username whoes

defiancenl

Verified User
Joined
Jan 23, 2007
Messages
7
Location
Venlo,Netherlands
Hi all,
I have a client who is hammering on the fact that he needs to be able to create usernames wich contain a "-" character.
I know this is not normal for DA, but is there a way i can support this for him?
 
You can check in the directadmin.conf but I don't think I seen anything in there that specified the characters allowed.
 
Hello,

I'm trying to think of any reason that we wouldn't allow a dash, but nothing comes to mind. I know the underscore isn't allowed because of mysql username_dbname.. but dash doesn't fall under that category.

Since the username is used very extensively, it would be difficult to fully understand all possible repercussions of allowing this character without a huge amount of testing.

Just as an example, if there is a command that moves a file as the username, "mv username" .. would turn into "mv -username" which is now a tag. Of course I wouldn't allow a dash at the start.. but that's a basic example of why it would need massive testing.

Unless there is a very good reason to allow a dash in the username, I would be very hesitant to add it into the code. (it's a hard-coded check, can't be changed in any config)

John
 
I dont think local system usernames can have a dash.
Cause everytime DA will try to create a user using useradd or adduser the dash in the username will be like an option.

So I can say 100% that will create a lot of issues in the whole system, not only DA.
 
That may depend on your OS. You can certainly add them on RedHat based systems; I just tried.

Jeff
 
Back
Top