Description of Problem:
raceback (most recent call last):
File "/usr/share/redhat-config-users/mainWindow.py", line 617, in
File "/usr/share/redhat-config-users/mainWindow.py", line 626, in
File "/usr/share/redhat-config-users/userProperties.py", line 229, in
File "/usr/share/redhat-config-users/userProperties.py", line 457, in
primaryGroupName = primaryGroupEnt.get(libuser.GROUPNAME)
AttributeError: 'NoneType' object has no attribute 'get'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add NIS user to /etc/passwd, but not to /etc/group
2. run redhat-config-user
no traceback :)
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..
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
File "/usr/share/redhat-config-users/mainWindow.py", line 398, in
gidNumber = gidNumber
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.