FS#58396 - [accountsservice] running '/usr/sbin/useradd' failed: Child process exited with code 6

Attached to Project: Arch Linux
Opened by Leandro (leandro0101) - Sunday, 29 April 2018, 20:31 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 12 September 2018, 21:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:Error occurred while trying to add an administrator user

Operating System: Arch Linux 64 Bits
GNOME Version: 3.28.1


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 12 September 2018, 21:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.6.50 includes the fix upstream.
Comment by Jan de Groot (JGC) - Sunday, 29 April 2018, 22:25 GMT
code 6 means invalid group. Adding an administrator account using accountsservice puts the user in "wheel" group. Does wheel exist as a group on your system?
Comment by Leandro (leandro0101) - Sunday, 29 April 2018, 22:34 GMT
Yes
Comment by Doug Newgard (Scimmia) - Monday, 30 April 2018, 15:58 GMT
does useradd itself work?
Comment by Strangiato (Strangiato) - Wednesday, 02 May 2018, 13:57 GMT
my report  FS#58426  was marked as duplicate.
On my system 'groups' output is
sys lp wheel network video optical storage input power sambashare stalker

'sudo useradd test_user' works, user account created is listed in gnome-control-center

Comment by loqs (loqs) - Wednesday, 02 May 2018, 16:02 GMT
Any output from
# grpck -r
# /usr/sbin/useradd -m -c realname -G wheel -- FS58396
# echo $?
the second command will create a user using the same format as account service the third will show the second commands exit status
Comment by Strangiato (Strangiato) - Thursday, 03 May 2018, 00:56 GMT
first command shows no output
second command says "file or directory not found"
third command output is 1
Comment by Doug Newgard (Scimmia) - Thursday, 03 May 2018, 01:32 GMT
Strangiato, do you not have a symlink at /usr/sbin pointing to bin?
Comment by Strangiato (Strangiato) - Thursday, 03 May 2018, 02:09 GMT
No.
Comment by Doug Newgard (Scimmia) - Thursday, 03 May 2018, 02:14 GMT
Then either something is seriously wrong with your system/filesystem, or you're not on Arch. Reinstall the filesystem package at the least.
Comment by Strangiato (Strangiato) - Thursday, 03 May 2018, 02:21 GMT
Reinstall filesystem did not help. I use pure Arch, not manjaro, antergos, etc.
Comment by Doug Newgard (Scimmia) - Thursday, 03 May 2018, 02:23 GMT
You reinstalled the filesystem package and still have no /usr/sbin/ symlink? Something is seriously wrong with your system, then.
Comment by Strangiato (Strangiato) - Thursday, 03 May 2018, 02:25 GMT
Right. I have useradd shared library in /usr/sbin, not symlink.
Comment by Doug Newgard (Scimmia) - Thursday, 03 May 2018, 02:33 GMT
/usr/sbin itself should be a symlink. It should: a) not be a dir something could be in and b) never contain shared libraries at all.
Comment by Strangiato (Strangiato) - Thursday, 03 May 2018, 02:41 GMT
yes, my /usr/sbin itself is a symlink. Nautilus says that useradd found inside /usr/sbin is a shared library.
Comment by Doug Newgard (Scimmia) - Thursday, 03 May 2018, 02:43 GMT
So now loq's command should return something differnt

Don't believe anything a GUI FM says.
Comment by Strangiato (Strangiato) - Thursday, 03 May 2018, 02:50 GMT
Sorry, I'm not an advanced user.
Now second command returns "invalid username", third command returns 0.
Comment by loqs (loqs) - Thursday, 03 May 2018, 10:20 GMT
please try instead # /usr/sbin/useradd -m -c realname -G wheel -- fs58396
Comment by Strangiato (Strangiato) - Thursday, 03 May 2018, 17:44 GMT
it's a bug in accounts service 0.6.47
https://bugzilla.gnome.org/show_bug.cgi?id=795640#c8
Comment by loqs (loqs) - Thursday, 03 May 2018, 18:19 GMT

Loading...