haydenzhourepo commented on a change in pull request #5093:
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/5093#discussion_r598068486
##########
File path:
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/RegexUtils.java
##########
@@ -30,6 +30,8 @@
*/
private static final String CHECK_NUMBER = "^-?\\d+(\\.\\d+)?$";
+ private static final String LINUX_USERNAME_PATTERN =
"[a-z_][a-z\\d_]{0,30}";
Review comment:

This is the constraints of ubuntu OS above. different Linux OS have
different constraints of username.
We can give the strictest rules to fit all of those different OS. which
refers to
https://stackoverflow.com/questions/6949667/what-are-the-real-rules-for-linux-usernames-on-centos-6-and-rhel-6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]