0

In systems such as Debian, there is a file /etc/adduser.conf which includes directive NAME_REGEX that can be used to define which characters are allowed in a username.

Is there a way to do this in CentOS 6.9? I can see that there is a file /etc/default/useradd but there is no indication anywhere in the documentation that it could support a similar directive.

I would like to be able to create a username with the @ sign in it, such as user@domain.com.

  • 1
    what are your trying to achieve here ? – Kiwy Jun 14 '18 at 12:00
  • 1
    I would like to be able to create a username with the '@' sign in it, such as user@domain.com – Petr Břeň Jun 14 '18 at 12:09
  • 3
    dont do that. it will break so many thing for example you won't be able to connect via ssh on the machine because ssh user@domain@hostname will never work. – Kiwy Jun 14 '18 at 12:11
  • 1
    I've edited your question to make it clearer. Relevant details should really be added to the question so that it can be answered without having to read the comments. – Anthony Geoghegan Jun 14 '18 at 13:17
  • serverfault.com/q/879393/131555 interesting question with some background ;-) – Kiwy Jun 14 '18 at 13:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.