Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
numbers in usernames
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
malvin
n00b
n00b


Joined: 04 Mar 2003
Posts: 8
Location: Kisa, Sweden

PostPosted: Sun Jul 17, 2005 10:32 am    Post subject: numbers in usernames Reply with quote

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
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sun Jul 17, 2005 6:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
malvin
n00b
n00b


Joined: 04 Mar 2003
Posts: 8
Location: Kisa, Sweden

PostPosted: Sun Jul 17, 2005 6:46 pm    Post subject: Reply with quote

no way of getting around this??
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sun Jul 17, 2005 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
malvin
n00b
n00b


Joined: 04 Mar 2003
Posts: 8
Location: Kisa, Sweden

PostPosted: Mon Jul 18, 2005 6:48 pm    Post subject: Reply with quote

I read about it in the some online man pages for adduser.conf .. http://linux.com.hk/PenguinWeb/manpage.jsp?section=5&name=adduser.conf
but that is some old adduser version? i have tyred adding USER_REGEX in adduser.conf and /etc/default/useradd.. without any result..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum