Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] useradd not allowing username+number
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: Mon Jul 16, 2018 2:04 pm    Post subject: [Solved] useradd not allowing username+number Reply with quote

Hi,

I'm trying to make a username like

Abcdefg12345

However that doesnt seem possible. I understand this might be a policy issue, but what could the reason for this policy be?
Code:
useradd -m -b /mnt/surveillanceftp/ -N -G ftp --shell=/sbin/nologin Surveill12345678

Mod edit: [code] tags added for clarity. — JRG


Last edited by bastibasti on Mon Jul 16, 2018 4:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jul 16, 2018 2:16 pm    Post subject: Reply with quote

It's not the numbers; it's the capital 'S'.
man 5 passwd wrote:
name This is the user's login name. It should not contain capital letters.
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21754
Location: here

PostPosted: Mon Jul 16, 2018 2:50 pm    Post subject: Reply with quote

Here regexp for accepted string
_________________
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: Mon Jul 16, 2018 4:42 pm    Post subject: Reply with quote

Thank you guys!
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