Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble with adding new users
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
JoGiles
n00b
n00b


Joined: 06 May 2003
Posts: 6
Location: New Zealand

PostPosted: Tue May 06, 2003 4:28 am    Post subject: Trouble with adding new users Reply with quote

Hey there everyone - I'm Jonathan Giles from good old New Zealand :)

I'm having a problem with my Gentoo linux install - I'm a new Linux user, and have been managing so far, but I am running in root and it doesn't make me feel too safe...

When I run useradd or superadduser I get the error message
Code:
useradd: invalid user name 'Jo'


I was wondering what I should try to fix this issue and make myself a new user account - I have no idea where to start :)

Thanks in advance,
Jonathan Giles
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue May 06, 2003 4:51 am    Post subject: Reply with quote

useradd (and, consequently, superadduser) do not accept uppercase characters. The new username must match this regular expression:
Code:

[a-z_][a-z0-9_-]*

You can make "jo" the username and specify "Jo <Something>" to be the full name.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue May 06, 2003 4:53 am    Post subject: Reply with quote

There are some threads in Documentation, Tips & Tricks regarding Red Hat like scripts that will do this. Uppercase, .'s and maybe some other stuff.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Tue May 06, 2003 5:40 am    Post subject: Reply with quote

Code:
emerge superadduser


then run
Code:
superadduser


fill in the details
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
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