[users-admin] When you create more than one user with users-admin, it creates only the users that was created in even positions

Bug #64724 reported by Mat
4
Affects Status Importance Assigned to Milestone
GST
Fix Released
High
gnome-system-tools (Ubuntu)
Fix Released
High
Ubuntu Desktop Bugs

Bug Description

I have created 10 users, which are named poste01, poste02 .. poste10 in the System -> administration -> users and groups dialog. When it was done, I had the whole list of users in the left. The I closed the window, opened a terminal and then I discovered that the user poste01 was not created, although the /home/poste01 was already created.
The I reopened the users and groups dialog, and I saw that only poste02, poste04, poste06, poste08 and poste10 were created. I tried to add poste01 again, but each time I close the window, and reopen it, the users terminating with an odd number disappear.

Tags: users-admin
Revision history for this message
Paul Williams (pwill) wrote : Re: [edgy-beta] Adding user with name terminated by odd number doesn't create user

I just tried this, and can confirm the bug by following these steps:
1. Run 'users-admin'
2. Add user "foo01"
3. Add user "foo02"
4. Run 'nautilus /home' to confirm users have been created
5. Exit 'users-admin'
6. Reopen 'users-admin' - "foo01" is not there, "foo02" is.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Confirmed in my updated Edgy.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

After some investigation, I've found this: The problem has nothing to do with the terminating numbers. It appears when you create users with any username.

The problem is: when you create more than one user, users-admin only creates the users you created in even positions.

Example:

0. Open users-admin. Use it to create users in the following steps. Don't close the utility never during the rest of the process.
1. Create a user called "one". Type "cat /etc/passwd" in a terminal to see that the user is created:
(one:x:1001:1004:one,,,,:/home/one:/bin/bash)
2. Create a user called "two". Type "cat /etc/passwd". "one" is gone. Only "two" is there:
(two:x:1002:1005:two,,,,:/home/two:/bin/bash)
3. Create a user called "three". Type "cat /etc/passwd". "one" reappears. "two" disappears. "three" is created:
(one:x:1001:1004:one,,,,:/home/one:/bin/bash
three:x:1003:1006:three,,,,:/home/three:/bin/bash)
4. Create a user called "four". Type "cat /etc/passwd". "one" and "three" disappears. "two" appears again. "four" is created:
(two:x:1002:1005:two,,,,:/home/two:/bin/bash
four:x:1004:1007:four,,,,:/home/four:/bin/bash)

Revision history for this message
Sebastien Bacher (seb128) wrote : Re: When you create more than one user with users-admin, it creates only the users that was created in even positions

Thanks for your bug. I've forwarded it upstream: http://bugzilla.gnome.org/show_bug.cgi?id=360848

Changed in gnome-system-tools:
assignee: nobody → desktop-bugs
importance: Undecided → High
Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the issue:

 liboobs (0.6.0-0ubuntu2) edgy; urgency=low
 .
   * debian/patches/90_from_cvs_fix_users_creation_issue.patch:
     - patch from CVS, fix an issue when creating several users in a row
       (Ubuntu: #64724)

Changed in gnome-system-tools:
status: Confirmed → Fix Released
Changed in gst:
status: Unknown → Fix Released
Changed in gst:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.