Description of problem: system-config-users crashes on startup with the following traceback: # system-config-users Traceback (most recent call last): File "/usr/share/system-config-users/system-config-users.py", line 45, in ? mainWindow.mainWindow() File "/usr/share/system-config-users/mainWindow.py", line 280, in __init__ self.refresh() File "/usr/share/system-config-users/mainWindow.py", line 454, in refresh self.populate_lists() File "/usr/share/system-config-users/mainWindow.py", line 546, in populate_lists self.populate_group_list() File "/usr/share/system-config-users/mainWindow.py", line 529, in populate_group_list if long (gid) > 499 and not (cn == "nfsnobody" and (long (gid) == 65534L or long (gid) == 4294967294L)):UnboundLocalError: local variable 'gid' referenced before assignment # Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. start system-config-users on my host. 2. see the window flash on your screen and then observe the traceback 3. Actual results: no function Expected results: working application Additional info:
I'm a bit curious why libuser wouldn't return a GID at that point, Mirek can you comment on that? Other than that, perhaps you should check whether there are illegal or inconsistent entries in your /etc/group and/or /etc/gshadow files.
Some probably exists in /etc/gshadow, but not in /etc/groups.
s/Some/& group/
Quite right. gshadow has wheel.
I've also seen this problem in RHEL4-U6, system-config-users version . Attempting to duplicate in RHEL5-U1, system-config-users version 1.2.51-1.el5, I get the following, more precise error: "The user database cannot be read. This problem is most likely caused by a mismatch between /etc/passwd and /etc/shadow or /etc/group and /etc/gshadow. The program will exit now."
This request was evaluated by Red Hat Engineering for inclusion in a Red Hat Enterprise Linux maintenance release. Red Hat does not currently plan to provide this change in a Red Hat Enterprise Linux update release for currently deployed products. With the goal of minimizing risk of change for deployed systems, and in response to customer and partner requirements, Red Hat takes a conservative approach when evaluating enhancements for inclusion in maintenance updates for currently deployed products. The primary objectives of update releases are to enable new hardware platform support and to resolve critical defects. However, Red Hat will further review this request for potential inclusion in future major releases of Red Hat Enterprise Linux.