View previous topic :: View next topic |
Author |
Message |
malvin n00b
Joined: 04 Mar 2003 Posts: 8 Location: Kisa, Sweden
|
Posted: Sun Jul 17, 2005 10:32 am Post subject: numbers in usernames |
|
|
I need to allow usernames that has a number as it first character..
i have read something about USER_REGEX= in adduser.conf
but i cant find any of this in gentoo?? |
|
Back to top |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sun Jul 17, 2005 6:24 pm Post subject: |
|
|
in the useradd man page:
Code: |
RESTRICTS
Currently, the shadow suite enforces the following restrictions on user names:
- must begin with a lower case letter or underscore
- can only contain lower case letters, underscores, and dashes
- may end with a dollar sign
- regex for these requirements: [a-z_][a-z0-9_-$]*
|
_________________ linux: #232767 |
|
Back to top |
|
|
malvin n00b
Joined: 04 Mar 2003 Posts: 8 Location: Kisa, Sweden
|
Posted: Sun Jul 17, 2005 6:46 pm Post subject: |
|
|
no way of getting around this?? |
|
Back to top |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sun Jul 17, 2005 6:51 pm Post subject: |
|
|
I don't know where you read about adding USER_REGEX= to adduser.conf
but you can try it:
Code: |
USER_REGEX=[a-z0-9_-$]*
|
_________________ linux: #232767 |
|
Back to top |
|
|
malvin n00b
Joined: 04 Mar 2003 Posts: 8 Location: Kisa, Sweden
|
|
Back to top |
|
|
|