首页 > 技术文章 > linux下增加useradd提示existing lock file /etc/subgid.lock without a PID

wuxie1989 2017-05-27 10:47 原文

# 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

 

推荐阅读