chfn needs to learn about the --extrausers argument and use libnss-extrausers files when set

Bug #1495580 reported by Oliver Grawert
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
High
Unassigned
shadow (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Medium
Unassigned
Bionic
Fix Released
Undecided
Unassigned

Bug Description

as seen in bug 1492327, adduser now works for creating users in the extrausers db but when it tries to update the GECOS field at the end of adding a user (interactively and noninteractively) chfn falls over ...

chfn needs similar patches to the other shadow binaries that recently got extrausers support.

TEST CASE:
- create a user "foo" on an Ubuntu Core system
- run "chfn --extrausers -f some-name foo" on an Ubuntu Core system

REGRESSION POTENTIAL:
- low: this requires the new (and optional) --extrausers switch to change anything.

Oliver Grawert (ogra)
Changed in snappy:
milestone: none → 15.04.3
Alexander Sack (asac)
Changed in snappy:
assignee: nobody → Oliver Grawert (ogra)
importance: Undecided → High
Oliver Grawert (ogra)
Changed in snappy:
status: New → Triaged
Oliver Grawert (ogra)
Changed in snappy:
milestone: 15.04.3 → 15.04.4
Revision history for this message
Michael Vogt (mvo) wrote :
Changed in snappy:
status: Triaged → In Progress
Revision history for this message
Oliver Grawert (ogra) wrote :

seems to behave fine on my xenial desktop install, can't see any regressions.

Michael Vogt (mvo)
Changed in snappy:
milestone: 15.04.4 → none
assignee: Oliver Grawert (ogra) → nobody
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Michael Vogt (mvo)
affects: snapd (Ubuntu) → shadow (Ubuntu)
Changed in shadow (Ubuntu Xenial):
status: New → Confirmed
Changed in shadow (Ubuntu):
status: New → Confirmed
Michael Vogt (mvo)
Changed in shadow (Ubuntu):
status: New → In Progress
Changed in shadow (Ubuntu Xenial):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package shadow - 1:4.2-3.1ubuntu6

---------------
shadow (1:4.2-3.1ubuntu6) yakkety; urgency=medium

  * add support for "chfn --extrausers" (LP: #1495580)

 -- Michael Vogt <email address hidden> Thu, 23 Jun 2016 08:02:00 +0200

Changed in shadow (Ubuntu):
status: In Progress → Fix Released
Michael Vogt (mvo)
description: updated
description: updated
Michael Vogt (mvo)
Changed in shadow (Ubuntu Bionic):
status: New → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Oliver, or anyone else affected,

Accepted shadow into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/shadow/1:4.2-3.1ubuntu5.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in shadow (Ubuntu Xenial):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-xenial
Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

Validation done, no errors found. Logs:
xenial: https://paste.ubuntu.com/p/PrRPMnmBkN/

tags: added: verification-done verification-done-xenial
removed: verification-needed verification-needed-xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package shadow - 1:4.2-3.1ubuntu5.4

---------------
shadow (1:4.2-3.1ubuntu5.4) xenial; urgency=medium

  * patches/1012_extrausers_chfn.patch:
    - add --extrausers option to "chfn" (LP: #1495580)
  * debian/patches/1013_extrausers_deluser.patch:
    - add --extrausers option to "userdel" (LP: #1659534)
  * debian/patches/2000_fix-su-pam-env-handling:
    - fix "su -l" to correctly use pam_getenvlist (LP: #984390)

 -- Michael Vogt <email address hidden> Fri, 22 Mar 2019 20:22:06 +0100

Changed in shadow (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for shadow has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.