Red Hat Bugzilla – Bug 439401
system-config-users crashes on startup w/ unassigned variable "gid"
Last modified: 2008-08-18 11:52:29 EDT
Description of problem:
system-config-users crashes on startup with the following traceback:
Traceback (most recent call last):
File "/usr/share/system-config-users/system-config-users.py", line 45, in ?
File "/usr/share/system-config-users/mainWindow.py", line 280, in __init__
File "/usr/share/system-config-users/mainWindow.py", line 454, in refresh
File "/usr/share/system-config-users/mainWindow.py", line 546, in populate_lists
File "/usr/share/system-config-users/mainWindow.py", line 529, in
if long (gid) > 499 and not (cn == "nfsnobody" and (long (gid) == 65534L or
long (gid) == 4294967294L)):UnboundLocalError: local variable 'gid' referenced
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. start system-config-users on my host.
2. see the window flash on your screen and then observe the traceback
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.
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
However, Red Hat will further review this request for potential inclusion
in future major releases of Red Hat Enterprise Linux.