Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] [RTFM] Cannot create any new users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 568

PostPosted: Thu Jul 14, 2016 9:24 am    Post subject: [Solved] [RTFM] Cannot create any new users Reply with quote

Hi,

I have a gentoo box, that is running since 4 years now. Now I tried to add a user and it fails

Code:

 # useradd -m -G users -s /sbin/nologin JohnDoe
useradd: invalid user name 'JohnDoe'


i checked and it seems to be the groupadd command that fails

Code:

# groupadd JohnDoe
groupadd: 'JohDoe' is not a valid group name


any idea?


Last edited by bastibasti on Thu Jul 14, 2016 11:48 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21794
Location: here

PostPosted: Thu Jul 14, 2016 9:50 am    Post subject: Re: Cannot create any new users Reply with quote

useradd man wrote:
Usernames must start with a lower case letter or an underscore, followed by lower case letters, digits, underscores, or dashes. They can end with a dollar sign. In regular expression terms: [a-z_][a-z0-9_-]*[$]?

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 568

PostPosted: Thu Jul 14, 2016 11:48 am    Post subject: Reply with quote

Thank you!

RTFM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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