2020年7月19日_Debian创建新用户

报错:

root@raspberrypi:~# adduser MoKin_Git
adduser:请输入一个和配置变量 NAME_REGEX[_SYSTEM] 匹配的用户名。
使用"--force-badname"选项来屏蔽这个检查或者重新配置
或重新配置 NAME_REGEX。

原因:cat /etc/adduser.conf

# check user and group names also against this regular expression.
#NAME_REGEX="^[a-z][-a-z0-9_]*$"

解决办法:

root@raspberrypi:~# adduser mokin_git

原文地址:https://www.cnblogs.com/LeeCookies/p/13340385.html