运行后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
我该如何解决?