linux下增加useradd提示existing lock file /etc/subgid.lock without a PID

# useradd git -g git
useradd: existing lock file /etc/subgid.lock without a PID
useradd: cannot lock /etc/subgid; try again later.

肿木办呢?把lock文件删掉不就行了吗

rm -rf /etc/subgid.lock 
useradd git -g git
原文地址:https://www.cnblogs.com/wuxie1989/p/6911858.html