Why are emphasizes not admitted usernames in some distros (Debian as an example)

So why has the emphasize been taken into consideration a negative personality for customer names in Debian (and also perhaps various other circulations) while it has been gotten rid of from adduser is NAME_REGEX in Ubuntu?

0
2019-05-18 23:14:28
Source Share
Answers: 3

I'm making use of Debian Squeeze and also I took care of to create a customer with emphasize, adduser user_1. Why do you claim they are not permitted?

0
2019-05-21 10:46:02
Source

POSIX specifies the use of a mobile set of personalities for customer and also team names.
_ - . are permitted personalities, NAME_REGEX checks if the username does just have defined personalities. The circulation programmers specify, if more personalities are refuted. Ubuntu, as an example, does restrict making use of . by default.

Including this constraint stays clear of disturbance with various other system devices, which might analyze unique personalities. Consider the variable $PATH, when you have a customer with the name my:user and also add your residence directory site to $PATH:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /home/my:user/bin

The directory sites /home/my and also user/bin would certainly (possibly) not exist. Better, /etc/passwd would certainly have 2 : greater than required.

Edit:
Debian is adduser (variation 3.110) makes use of /^[_.A-Za-z0-9][-\@_.A-Za-z0-9]*\$?$/ for examining usernames, _ is permitted as long as NAME_REGEX does not restrict it.

0
2019-05-21 10:41:40
Source

A comparable inquiry has actually currently been addressed here

Theoretically you can make use of virtually any kind of ASCII personality you desire as username, yet, to stay clear of some sort of pests, like to one stated in the above write-up, you can set that normal expression that stay clear of particular concerns.

0
2019-05-21 07:58:12
Source