Can't edit groups (freeze and "permission denied" error)

Bug #542744 reported by Michael Mayer
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
system-tools-backends
Fix Released
Undecided
Unassigned
system-tools-backends (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gnome-system-tools

netbook-remix 10.4beta1, system language set to german

1. open user and group administration tool System--User&Group administration
2. Add a new admin user, user id 1001
3. new user doesn't get a group. Add a new group, group id 1001
4. group tool freezes for 5..10 seconds
5. error popup window: unable to save configuration. Unknown error.
6. quit group tool, reopen it again. Check list of groups, the new group does exist now. So /etc/groups was saved successfully.
7. from the group list, open properties for the new group. No member so far. Add the new user to the group.
8. tool freezes again and gives error pop up again (similar to step 4 and 5)
9. repeat step 6: reopen group tool
10. repeat step 7: check properties of the new group. The new user was added successfully.

ProblemType: Bug
Architecture: i386
Date: Sat Mar 20 21:36:18 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/users-admin
InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Beta i386 (20100318)
Package: gnome-system-tools 2.29.91-0ubuntu2
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: gnome-system-tools
Uname: Linux 2.6.32-16-generic i686

Revision history for this message
Michael Mayer (michael-mayer) wrote :
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Thanks for the report. I think there are several different issues at stake here.

First, when creating an user, its main group is creating under the hood by adduser, and we don't show it until the tool is restarted. This is a known problem, but it's not easy to fix properly, at least in a stable release. But this shouldn't be a major bug: why would you need to edit the user's main group right after creating it?

Second, groups creation seems to fail *for any group* in Lucid. But the error I get is about permissions, not "Unknown error". Could you check that it's the case on your machine? This bug seems to be fixed in the current upstream version, though.

Changed in gnome-system-tools (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Michael Mayer (michael-mayer) wrote :

Yes, you are right, it is two different errors:
On creation of a group I get a permission error.
On adding members to a pre-existing group I get an unknown error.

But in both cases I get this temporary freeze prior to the error message.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Oh, I think I understand where the second issue comes from. Could you apply the attached patch and retry? Save the file, and then run:
sudo patch /usr/share/dbus-1/system-services/org.freedesktop.SystemToolsBackends.service < PATH_TO_SAVED_FILE
(You'll need to restart your computer after that for the changes to take effect.)

This patch is already applied in a more recent upstream release.

tags: added: patch
Revision history for this message
Michael Mayer (michael-mayer) wrote :

The patch failed because my org.freedesktop.SystemToolsBackends.service is almost empty. This is the full file contents:

[D-BUS Service]
Name=org.freedesktop.SystemToolsBackends
Exec=/usr/sbin/system-tools-backends
User=root

That's all, end of file, and none of the other files in the directory looks even remotely similar to the patch. Did the last dist-upgrade one hour ago. I'am using the netbook remix, is it that different from the desktop edition?

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

No, it's just that I should have told you to patch the file /etc/dbus-1/system.d/org.freedesktop.SystemToolsBackends.conf. :D

Revision history for this message
Michael Mayer (michael-mayer) wrote :

That's it! Now it works fine. No freeze anymore.

But still: If I add a new user, I would expect the tool to add a group of the same name and set this as the main group for the new user as it happens with the initial default user on system installation.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Cool. For the main group problem: the group is automatically created, it's just that it's not shown right after adding it. Do you have a precise reason to immediately go to the groups dialog and try to edit this group? Fixing that bug currently requires a few hacks that I'm not sure I can commit now that we're close to the release. So better be sure it's worth the risk.

Revision history for this message
Michael Mayer (michael-mayer) wrote :

Usually I prefer to use a simple "useradd -m", it was the first time ever I tried the GUI for this simple task. And I checked the group properties just to be sure that everything is fine. I did not realise that the group is actually created, so I tried to do it by hand. Call it a misunderstanding by an unexperienced GUI user ;-)

I think it is important to get the patch for the freeze fix into lucid, but the other point is not really urgent, time to fix it for the next release 10.10. Thank you for your quick replies!

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

OK, that's the more likely scenario - sometimes knowing more leads to more problems... ;-)

Could you open a new report about the main group problem? I'll see if I can put together a not-so-ugly patch before 2.30 is released. But I consider this bug as fixed for the first error.

Changed in gnome-system-tools (Ubuntu):
status: Incomplete → Triaged
affects: gnome-system-tools (Ubuntu) → system-tools-backends (Ubuntu)
Changed in system-tools-backends:
status: New → Fix Released
summary: - user group administration tool freezes temporary and reports failed
- authentication even for successfull actions
+ Can't edit groups (freeze and "permission denied" error)
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Package was uploaded to Lucid a long time ago.

Changed in system-tools-backends (Ubuntu):
status: Triaged → Fix Released
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.