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:
       
   
![image](https://user-images.githubusercontent.com/21101605/111860431-5d5c0e80-8982-11eb-8547-9af6881359a6.png)
   
   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]


Reply via email to