users-admin fakes adding groups with existing gid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GST |
Fix Released
|
Undecided
|
Unassigned | ||
gnome-system-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gnome-system-tools
I start users-admin, and I try to add a new group. The first error (IMO) is that I am presented with gid 0. I leave that, and try to add, say, group oki. The tool shows on the bottom of the list of groups that oki is added. I close tool, but /etc/group shows no group oki. When I reopen users-admin, and I open "manage groups" of course there is no group oki.
You can repeat the same thing with any existing gid: try to add a group with an existing gid, and users-admin will fake adding it.
Both bugs (initial gid 0 and faking the addition of a group with existing gid) are reproducible in Ubuntu 9.10 fully updated.
ProblemType: Bug
Architecture: amd64
Date: Wed Dec 2 09:06:42 2009
DistroRelease: Ubuntu 9.10
Package: gnome-system-tools 2.28.1-0ubuntu2
ProcEnviron:
PATH=(custom, no user)
LANG=hu_HU.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: gnome-system-tools
Uname: Linux 2.6.31-15-generic x86_64
XsessionErrors:
(gnome-
(gnome-
(polkit-
(nautilus:6586): Eel-CRITICAL **: eel_preferences
(gnome-
Changed in gnome-system-tools (Ubuntu): | |
status: | Triaged → Fix Committed |
I noticed that the same happens when you try to add a user with an existing uid. The tool even claims that the new user's home directory is added. On the other hand, at least the initially proposed uid is not 0.
Why not give a *warning* (not error) message when a duplicate uid is given in the tool, and if user confirms, run useradd and groupadd with the -o option.