Red Hat Bugzilla – Bug 89895
redhat-config-users traceback adding users without private group
Last modified: 2007-04-18 12:53:22 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Description of problem:
When adding a user with a home directory other than default (i.e.
/home/users/username) and with a uid manually specified; if you "turn-off" the
"Create private group for user" option, redhat-config-users gui hangs and the
following traceback is displayed:
Traceback (most recent call last):
File "/usr/share/redhat-config-users/userWindow.py", line 315, in
File "/usr/share/redhat-config-users/userWindow.py", line 332, in addToUsersGroup
cn = groupEnt.get(libuser.GROUPNAME)
AttributeError: 'NoneType' object has no attribute 'get'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. choose "Add User" in redhat-config-users
2. specify the user directory and uid manually
3. turn off (uncheck) Create private group and press "OK"
Actual Results: Add user window goes grey and appears to be working (forever).
No user is added. Traceback is displayed if redhat-config-users is started in
a terminal window.
Expected Results: Should add user.
Additional info: redhat-config-users will not function after the traceback.
Have to close the program and restart.
I spoke too soon! The problem is that the initial installation did not create
the group "users, gid=100". I'm not sure which component creates the group
during install. The only thing that I did abnormally during the install was to
not create a user (because I wanted to specify the uid manually).
redhat-config-users should test for the existence of the group "users" before
trying to use it and at least display a nice error (The default group "users"
doesn't exist. Shall I create it?) instead of crashing.
The group "users" is part of the default file written by the setup package (e.g.
setup-2.5.25-1.noarch.rpm in RHL 9). It should pretty much always be there.
That's not to say that redhat-config-users should crash if it isn't, of course.
The 'users' group should always get created. I cannot explain why it didn't get
created on installation on your system.
I will try to change redhat-config-users to try to create this group if it
doesn't exist. However, my feeling is that the absence of the 'users' group
most likely a problem of some sort with your system.
*** Bug 89319 has been marked as a duplicate of this bug. ***
Actually, I think bug #78620 is causing the 'users' group to get deleted.
Should be fixed in Rawhide. I'm working on making redhat-config-users
automatically recreate the users group in case it doesn't exist when you try to
add a new user to the 'users' group.
Should be fixed in redhat-config-users-1.1.5-9 in Rawhide.
*** Bug 116999 has been marked as a duplicate of this bug. ***