Description of Problem: raceback (most recent call last): File "/usr/share/redhat-config-users/mainWindow.py", line 617, in on_properties_activate self.user_properties() File "/usr/share/redhat-config-users/mainWindow.py", line 626, in user_properties self.userProperties.showUserProperties(userEnt) File "/usr/share/redhat-config-users/userProperties.py", line 229, in showUserProperties self.set_default_group(self.userEnt) File "/usr/share/redhat-config-users/userProperties.py", line 457, in set_default_group primaryGroupName = primaryGroupEnt.get(libuser.GROUPNAME)[0] AttributeError: 'NoneType' object has no attribute 'get' Version-Release number of selected component (if applicable): redhat-config-users-1.1-1 Steps to Reproduce: 1. add NIS user to /etc/passwd, but not to /etc/group 2. run redhat-config-user 3. Actual Results: traceback Expected Results: no traceback :) Additional Information:
Umm, can you explain why you're trying to add an NIS user to /etc/passwd?
cut/paste the NIS /etc/passwd line too please.
My /etc/passwd line.. harald:x:2413:2414:Harald Hoyer,Engineering/Systems Engineer,+49-711-96437-157:/home/harald:/bin/bash /etc/shadow: harald:x:11900:0:99999:7::: This was for the IDs, if running without NIS...
I have changed redhat-config-users to be able to handle a primary group id missing from the groups file. It still doesnot handle NIS well, but it will no longer traceback. Fixed in the next redhat-config-users package.
Testing with redhat-config-users-1.1-16, here's what I did. I added a user to /etc/passwd, setting GID which didn't exist in the /etc/group file. I launched redhat-config-users and was able to browse information about the user account without any problems, but then I attempted to delete the user through the interface and got this traceback: Traceback (most recent call last): File "/usr/share/redhat-config-users/mainWindow.py", line 613, in on_delete_activate self.refresh_users_and_groups(need_refresh) File "/usr/share/redhat-config-users/mainWindow.py", line 398, in refresh_users_and_groups gidNumber = gidNumber[0] IndexError: list index out of range
Confirmed that the bug still exists in 8.0
Should be fixed in redhat-config-users-1.1.3-1. Jay, please try with that version.
Fix confirmed with redhat-config-users-1.1.3-1.