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.
added the fix to 4.1.4.2-r4, thanks for the research
*** Bug 327881 has been marked as a duplicate of this bug. ***