GNOME Bugzilla – Bug 336935
Creating lots of users at once causes many groups to be deleted
Last modified: 2006-05-26 14:01:25 UTC
Please describe the problem: If an administrator creates a large number of users at once, before pressing OK, then the users will not be added. In addition, groups may be removed from the system. Steps to reproduce: 1. Run users-admin 2. Click "Add User", add a user. 3. Repeat step 2 fifteen times. 4. Click "OK" on main application window. Actual results: The users will not be added. In addition, groups may be deleted. In one case, the groups adm, tty, disk, kmem, dialout, fax, voice, cdrom, floppy, tape, sudo, audio, dip, operator, src, shadow, utmp, video, sasl, plugdev, staff, users, crontab, ssh, slocate, scanner and admin were deleted. Expected results: The users should be created, and no groups should be deleted. Does this happen every time? The users are not created, but based on bug reports, the groups may not always be removed. Other information: This is based on Ubuntu bug #31675 - https://launchpad.net/distros/ubuntu/+source/gnome-system-tools/+bug/31675
When users-admin communicates with the backend, one of the lines in the XML file is over 4095 characters in size. While this line is communicated in full (verified with strace), the debug "in.xml" file in the backend seems to show that the line was truncated to 4095 characters.
Created attachment 62610 [details] [review] Add extra linefeed characters to XML Workaround the backend issue by adding extra linefeed characters between user entries.
CVS HEAD has changed IPC, so this bug shouldn't happen again, thanks for the bug report