Red Hat Bugzilla – Bug 109499
chage -l improperly reports zero val in account expiration field
Last modified: 2007-04-18 12:59:16 EDT
Description of problem:
If the account expiration value is set to zero, the account is set to
expire zero days after the epoch ie 01/01/70, which effectively
disables the account. However, chage -l lists values <=0 as 'Never'.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.chage -l foo //will show user foo's expire date as 'Never'
2.chage -E0 foo
3.chage -l foo //still 'Never'
4.su - foo //'Account Expired' message
'chage -l' shows 'Never', even though the account is expired
Should show account expiration date of 01/01/1970
'chage -E1 foo ; chage -l foo' produces the expected results
(01/02/1970, in this case)