Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1005292

Summary: GECOS changes reflecting in ipa but not in getent command
Product: Red Hat Enterprise Linux 6 Reporter: Varun Mylaraiah <mvarun>
Component: ipaAssignee: Martin Kosek <mkosek>
Status: CLOSED NOTABUG QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: mvarun, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-09 20:49:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Varun Mylaraiah 2013-09-06 15:24:26 UTC
Description of problem:
GECOS changes reflecting in ipa but not in /etc/passwd (#getent passwd <user>)

Version-Release number of selected component (if applicable):
ipa-server-3.0.0-34.el6.x86_64 and ipa-server-3.3.1-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
[root@server65 ~]# getent passwd gecosuser
gecosuser:*:1804400085:1804400085:wrong format,Redhat:/home/gecosuser:/bin/sh   <-----------------

[root@server65 ~]# ipa user-mod gecosuser --gecos="gecosuser,9988776655,869896,REDHAT"
-------------------------
Modified user "gecosuser"
-------------------------
  User login: gecosuser
  First name: gecosuser
  Last name: gecosuser
  Home directory: /home/gecosuser
  GECOS field: gecosuser,9988776655,869896,REDHAT   <------------------------#reflecting in ipa
  Login shell: /bin/sh
  Email address: gecosuser
  UID: 1804400085
  GID: 1804400085
  Account disabled: False
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False

[root@server65 ~]# getent passwd gecosuser
gecosuser:*:1804400085:1804400085:wrong format,Redhat:/home/gecosuser:/bin/sh <------------ #not changing here

Expected results:
It should reflect in #getent passwd <user>

Additional info:
http://en.wikipedia.org/wiki/Gecos_field

Comment 2 Rob Crittenden 2013-09-06 15:32:49 UTC
sssd caches this data

Try this after the user-mod but before the second getent:

# sss_cache -U gecosuser

Comment 3 Varun Mylaraiah 2013-09-09 19:55:22 UTC
verified

[root@server65 ~]# ipa user-mod gecostestuser --gecos=testing,9988998899
-----------------------------
Modified user "gecostestuser"
-----------------------------
  User login: gecostestuser
  First name: gecostestuser
  Last name: gecostestuser
  Home directory: /home/gecostestuser
  GECOS field: testing,9988998899
  Login shell: /bin/sh
  Email address: gecostestuser
  UID: 751400001
  GID: 751400001
  Account disabled: False
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False

[root@server65 ~]# getent passwd gecostestuser
gecostestuser:*:751400001:751400001:testing:/home/gecostestuser:/bin/sh

[root@server65 ~]# sss_cache -U gecostestuser

[root@server65 ~]# getent passwd gecostestuser
gecostestuser:*:751400001:751400001:testing,9988998899:/home/gecostestuser:/bin/sh

Comment 4 Rob Crittenden 2013-09-09 20:49:00 UTC
Ok, closing as NOTABUG. This is expected behavior.