Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183 - chage -l doesn't work
Summary: chage -l doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-15 14:55 UTC by Daniel Robbins (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Robbins (RETIRED) gentoo-dev 2002-01-15 14:55:04 UTC
chage looks for:
/etc/pam.d/chage

since it isn't found, it accesses:
/etc/pam.d/other

And access is denied.  This should allow a normal user to view his password
aging information.  Instead:

$ chage -l drobbins
chage: PAM authentication failed
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-01-15 15:54:19 UTC
this is now fixed for root in shadow-4.0.1.ebuild but not for other users.  This
may be a problem with the chage program itself since it shouldn't check the same
pam entry if we're just doing a chage -l.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-15 16:35:41 UTC
I can get it to ask for login each time, and on correct passwd, to work
properly, but this is not the correct behaviour.  Ill fiddle with pam
some more.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-15 17:53:39 UTC
Ok, fixed /etc/pam.d/chage, work for root in all occations, and only for the
user with no args (give help) and with chage -l <his username>.  With any other
username for user, it fails auth.