GNOME Bugzilla – Bug 795640
Failed to add account running '/usr/sbin/useradd' failed: Child process exited with code 6
Last modified: 2018-05-10 07:25:47 UTC
Created attachment 371506 [details]
Error occurred while trying to add an administrator user
Operating System: Arch Linux 64 Bits
GNOME Version: 3.28.1
I am closing this bug because adding a new user works fine here.  There simply isn't enough information here to identify this a bug in gnome-control-center.
I suggest that you either report a bug to Arch Linux or try Arch Linux support channels.
 gnome-control-center 3.28.1 on Ubuntu 18.04 LTS
I can confirm such problem on Arch Linux, Gnome 3.28.1. Reopen please.
I followed these steps on my system
create a new user account and remove it immediatelly (gnome settings crashed on my system when I clicked another section on left side of gnome settings after I remove just created account)
create a new account again: I got the error reported here.
(In reply to Strangiato from comment #2)
> I can confirm such problem on Arch Linux, Gnome 3.28.1. Reopen please.
So far there are no reports of this issue on any distribution except Arch Linux and there is not enough information provided here for someone that does not use Arch Linux to identify the problem.
I suggest that you report this issue to Arch Linux.
which info is needed to identify the problem?
Error code 6 means that "specified group doesn't exist" per "man useradd". useradd is called by accountsservice. ADMIN_GROUP and EXTRA_ADMIN_GROUPS are used as -G parameter of useradd. The constants are defined on build time:
So the accountsservice is probably built with some wrong parameters in Arch Linux, so best to discuss on Arch Linux support channels...
Thank you Ondrej Holy.
Reported in Arch tracker
I confirm this error, the same thing happens here.
The problem is in GNOME
Fedora 28 64 Bits
It is problem with accountsservice, not gnome-control-center.
accountsservice has been recently updated to 0.6.47 in Fedora, which is the culprit. It is caused by https://cgit.freedesktop.org/accountsservice/commit/?id=93e2a85653ca379524c1b912794cff2bf0f3a369
I am going to propose patch for it...
See the following bug for more details:
When will this error be fixed?
I've proposed patch for accountsservice, we can't do much here..