我正在尝试创建一个新用户,但是没有成功

我正在尝试创建一个新用户,但是没有成功

运行后sudo adduser charlie,我得到:

Adding user `charlie' ...
Adding new group `charlie' (1002) ...
Adding new user `charlie' (1001) with group `charlie' ...
Creating home directory `/home/charlie' ...
Stopped: chown 1001:1002 /home/charlie: Invalid argument

Removing directory `/home/charlie' ...
Removing user `charlie' ...
Removing group `charlie' ...
groupdel: group 'charlie' does not exist
adduser: `groupdel charlie' returned error code 6. Exiting.

更多细节

sudo grpck -r并且sudo pwck -rq不返回任何内容。

$ sudo egrep -i '1001|1002|charlie' /etc/{passwd,shadow,group}
/etc/passwd:charlie:x:1001:1002::/home/charlie: 
/etc/group:chronos-access:x:1001:jeffylaine 

我该如何解决?

相关内容