How to configure which characters are allowed in CentOS usernames
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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
.
centos regular-expression users login useradd
add a comment |Â
up vote
0
down vote
favorite
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
.
centos regular-expression users login useradd
1
what are your trying to achieve here ?
â Kiwy
Jun 14 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 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 becausessh user@domain@hostname
will never work.
â Kiwy
Jun 14 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 at 13:17
serverfault.com/q/879393/131555 interesting question with some background ;-)
â Kiwy
Jun 14 at 13:30
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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
.
centos regular-expression users login useradd
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
.
centos regular-expression users login useradd
edited Jun 14 at 13:14
Anthony Geoghegan
7,16233651
7,16233651
asked Jun 14 at 11:41
Petr Bà Âeà Â
1
1
1
what are your trying to achieve here ?
â Kiwy
Jun 14 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 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 becausessh user@domain@hostname
will never work.
â Kiwy
Jun 14 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 at 13:17
serverfault.com/q/879393/131555 interesting question with some background ;-)
â Kiwy
Jun 14 at 13:30
add a comment |Â
1
what are your trying to achieve here ?
â Kiwy
Jun 14 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 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 becausessh user@domain@hostname
will never work.
â Kiwy
Jun 14 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 at 13:17
serverfault.com/q/879393/131555 interesting question with some background ;-)
â Kiwy
Jun 14 at 13:30
1
1
what are your trying to achieve here ?
â Kiwy
Jun 14 at 12:00
what are your trying to achieve here ?
â Kiwy
Jun 14 at 12:00
1
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 at 12:09
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 at 12:09
3
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 at 12:11
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 at 12:11
1
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 at 13:17
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 at 13:17
serverfault.com/q/879393/131555 interesting question with some background ;-)
â Kiwy
Jun 14 at 13:30
serverfault.com/q/879393/131555 interesting question with some background ;-)
â Kiwy
Jun 14 at 13:30
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449784%2fhow-to-configure-which-characters-are-allowed-in-centos-usernames%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
what are your trying to achieve here ?
â Kiwy
Jun 14 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 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 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 at 13:17
serverfault.com/q/879393/131555 interesting question with some background ;-)
â Kiwy
Jun 14 at 13:30