Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 68950 - traceback if group from NIS
traceback if group from NIS
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-users (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Brent Fox
Depends On:
Blocks: 67218 79579
  Show dependency treegraph
Reported: 2002-07-16 08:52 EDT by Harald Hoyer
Modified: 2008-05-01 11:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-20 20:31:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Harald Hoyer 2002-07-16 08:52:28 EDT
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)[0] 
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 
Actual Results: 
Expected Results: 
no traceback :) 
Additional Information:
Comment 1 Brent Fox 2002-08-21 14:31:54 EDT
Umm, can you explain why you're trying to add an NIS user to /etc/passwd?
Comment 2 Preston Brown 2002-08-21 14:51:07 EDT
cut/paste the NIS /etc/passwd line too please.
Comment 3 Harald Hoyer 2002-08-22 06:48:53 EDT
My /etc/passwd line.. 
harald:x:2413:2414:Harald Hoyer,Engineering/Systems

This was for the IDs, if running without NIS...
Comment 4 Daniel Walsh 2002-08-22 10:47:56 EDT
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.
Comment 5 Jay Turner 2002-08-29 08:01:16 EDT
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[0]
IndexError: list index out of range
Comment 6 Brent Fox 2002-10-22 16:56:04 EDT
Confirmed that the bug still exists in 8.0
Comment 7 Brent Fox 2003-01-15 18:38:47 EST
Should be fixed in redhat-config-users-1.1.3-1.  Jay, please try with that version.
Comment 8 Jay Turner 2003-01-20 20:31:08 EST
Fix confirmed with redhat-config-users-1.1.3-1.

Note You need to log in before you can comment on or make changes to this bug.