Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 327605

Summary: sys-apps/shadow-4.1.4.2-r3: newgrp always fails with "Invalid password"
Product: Gentoo Linux Reporter: Dirk Sondermann <ds-gentoo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: guillaume.fabre, xmw
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 308047    

Description Dirk Sondermann 2010-07-09 11:00:33 UTC
With sys-apps/shadow-4.1.4.2-r3, which was marked stable for x86 as of 03 July 2010, newgrp always fails with the error message "Invalid password" when a non-root user tries to switch to a password protected group.

Reproducible: Always

Steps to Reproduce:
1. Create a new group: groupadd testgroup
2. Set a password for this group: gpasswd testgroup
3. Try to switch to the group as a non-root user: newgrp testgroup
4. At the "Password:" prompt, enter the correct password.
Actual Results:  
newgrp says "Invalid password." and returns exit status 1.

Expected Results:  
newgrp succeeds in switching to the new group.

This is an upstream bug (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569899) which may easily be fixed by adding the existing patch (fix-etc-gshadow-reading.patch) to the ebuild.
Comment 1 SpanKY gentoo-dev 2010-07-10 00:47:41 UTC
added the fix to 4.1.4.2-r4, thanks for the research
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-12 23:52:53 UTC
*** Bug 327881 has been marked as a duplicate of this bug. ***